?
Solved

Docking

Posted on 1998-10-28
4
Medium Priority
?
193 Views
Last Modified: 2010-04-06
How does one go about creating dockable menus like the one in the Delphi 4 IDE using components shipped with Delphi 4?
0
Comment
Question by:philipleighs
[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
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
BoRiS earned 200 total points
ID: 1344879
philipleighs

Drop a controlbar on your form(from the addtional palette) then drop a toolbar(from your win32 palette) on to that.  Right click on the toolbar and choose add button.

Know drop a main menu component on you form add a File heading with a few items, then click on your button you created give the caption the same name as the File heading eg. &File, now set the menu property Automerge to true.

Then on the button look for the property MenuItem, drop down the list and choose File1.  Then on the toolbar look for the property Flat set it to true, Finally on the toolbar look for the property ShowCaptions set this to true aswell...

Then compile and there you have it the way borland did it...

Later
BoRiS
0
 
LVL 3

Author Comment

by:philipleighs
ID: 1344880
Hi BoRiS,

The menu does not act completely like D4.

Once a menu is dropped down (say the File menu), moving the mouse over the Edit menu does not open the Edit menu and close the File menu.

Also when the file menu is open, pressing the right cursor key does not open the Edit menu.

Maybe these two issues require minor tweaks so I'll accept your answer if you add a comment with a workaround, otherwise I'll reopen the question.

Cheers,
Phil.

0
 
LVL 4

Expert Comment

by:BoRiS
ID: 1344881
philipleighs

Sorry I should have included this in the explanation, all you need to do is set the grouped property to true on all the buttons, this way they act exactly as a main menu...

What the grouped property does is allow only 1 button at a time to be selected...

Later
BoRiS
0
 
LVL 3

Author Comment

by:philipleighs
ID: 1344882
Thanks BoRiS.
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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

719 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