The menu of Word2000 can be dragged out and docked (DOCK). How is it implemented?
Many Delphi controls have Dock properties, and here’s the key
First put a CoolBar on the form
Put a ToolBar on top of the CoolBar and add a few buttons
Set the ShowCaption property to True;
Make a MainMenu and add a few menu items
Set the form's menu property to empty
ToolBar's button AutoSize is set to True
Set the button's MenuItem to the corresponding MainMenu item
Let's see if it's interesting
By the way, the menu cannot pop up automatically, nor can it be dragged out of the CoolBar range.
This is easy to say
How about setting the Group property of the button? Has it changed? Can it pop up automatically? Does it look like the IDE interface menu of Delphi5?
Set the ToolBar's drag attribute and dock attribute (you don't know which one is these two attributes:-( )
Let’s compare it with the menu of Word200.