Solved

Docking

Posted on 1998-10-28
4
191 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reconfigure Delphi Install? 2 77
Performance of SQL statement 37 147
Browsing a TTreeView in Delphi 5 48
Firemonkey Queue list 1 51
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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