• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1433
  • Last Modified:

ManualDock and alignment problem

I cannot seem to get ManualDock to dock two Forms on a TPanel with the alignment specified.

I issue the following statements:

fConsole.Show;
fDisplay.Show;
fConsole.Manualdock(fMain.pnlDock,nil,alTop);
fDisplay.Manualdock(fMain.pnlDock,nil,alClient);

But the forms end up docking left and right instead of top and bottom.

I'm using Delphi 7 Professional - what am I doing wrong?

Paul
0
zebada
Asked:
zebada
1 Solution
 
zebadaAuthor Commented:
I figured it out already.
I just needed to swap the order, it appears that the first control to be docked is automatically docked with an alignment of alClient - obviously because there are no other controls docked.
So by doing this, it all works how I want:
fConsole.Show;
fDisplay.Show;
fDisplay.Manualdock(fMain.pnlDock,nil,alClient);
fConsole.Manualdock(fMain.pnlDock,nil,alTop);

Regards
Paul


0
 
Computer101Commented:
Points refunded and placed in PAQ

Computer101
E-E Admin
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now