Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Docking TPageControl vs. TPanel (https://www.delphipraxis.net/62636-docking-tpagecontrol-vs-tpanel.html)

Akku 7. Feb 2006 13:59


Docking TPageControl vs. TPanel
 
Hallo,
ich hab wiedermal ein komisches Problem.

Und zwar besitzt mein Programm eine MDI-Form, in der Unterfenster am Rand andocken können sollen. Das funktioniert auch soweit.

Im Show-Ereignis meines MDI-Fensters wird beim Start folgendermaßen ein Kindfenster automatisch angedockt:

Delphi-Quellcode:
MyMessageViewer.ManualDock(BottomPageControl);
Ein anderes Fenster dockt wie folgt an:

Delphi-Quellcode:
MyProjectViewer.ManualDock(LeftDockPanel, nil, nil);
Dazu sollte ich erwähnen, dass BottomPageControl vom Typ TPageControl und LeftDockPanel vom Typ TPanel ist.

Letzterer Fall ist kein Problem und funktioniert immer.
Im ersten Fall dagegen ist es abhängig vom System auf dem das Programm ausgeführt wird. Auf meinem jetzigen WinXP-Laptop funktioniert es einwandfrei. Auf zwei anderen Rechner, auf denen ich es getestet habe - einmal Win98 und einmal WinXP - hat's nicht geklappt - und der Debugger springt bei
Delphi-Quellcode:
MyMessageViewer.ManualDock(BottomPageControl);
mit einer Exception raus.

Kann mir da jemand weiterhelfen? :gruebel:

Danke! - Gruß Max


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:51 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz