Solved

Docking

Posted on 1998-10-28
4
188 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
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
BoRiS earned 50 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

776 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