?
Solved

ManualDock and alignment problem

Posted on 2003-02-23
2
Medium Priority
?
1,419 Views
Last Modified: 2012-08-13
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
Comment
Question by:zebada
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Author Comment

by:zebada
ID: 8004284
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 8004400
Points refunded and placed in PAQ

Computer101
E-E Admin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month13 days, 5 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question