?
Solved

Docking forms

Posted on 2008-10-21
9
Medium Priority
?
986 Views
Last Modified: 2012-05-05
i have an application that contains one form that has been developed as a menu ("navigation menu" that gives you access to other parts of the application and contains buttons etc.). I want to make the form dock-able and un-dock-able to the other forms. My question is, how do i dock it to the top of the other forms so that it and the other form have the same width.
0
Comment
Question by:Michael Sterling
[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
  • 3
  • 3
  • 2
9 Comments
 
LVL 38

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 400 total points
ID: 22773821
set your form property Align to alTop
or if you have your buttons on a panel and only put the panel in the docked to form
put the panel property to alTop and make sure the panel.Parent = Form
0
 
LVL 1

Author Comment

by:Michael Sterling
ID: 22775994
i think i see what your saying (maybe) but you do understand that i'm simply trying to dock one form onto the top of another form.
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 22779534
Geert is still correct

if you wish to dock Form2 to the top of Form1 then you would do
Form2.Parent := Form1;
Form2.Align := alTop;
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:Michael Sterling
ID: 22780978
ok...i mis spoke...i placed your code into play and what happend was just what i said,...Form2 wound up on top of fom1. but that's not quite how i meant it. what i should've said was that i want the bottom of form2 to "dock" to the top of form1 (at the edges). so that the forms are touching (top of form1 to bottome of form2) but not so that form2 is actually laying over form1 (covering up parts of form1). that's what i should've said. the code you gave me does exactly what you/I said i wanted, even though i described it wrong...so i need help with aligning the top of form1 with the bottom of form2.
0
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 1600 total points
ID: 22818335
Take a look at the free docking controls and source at
http://torry.net/pages.php?id=1549
They work like WinAmp.
there also used to be a "Magnet Form" around that did a similar thing
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 22818340
A search for "Magnet" on torry.net brings up 3 form magnet downloads with source
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 23312545
post a comment how you did it, and accept your own comment.

you seem to think that asking questions and letting experts answer your questions is free of charge.
next to that deleting questions does not help anybody else
and in the end it is a waste of any experts time
0
 
LVL 1

Author Closing Comment

by:Michael Sterling
ID: 31508609
thank you for your contributions.
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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 …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

743 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