Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Docking

Posted on 1998-10-28
4
Medium Priority
?
194 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

972 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