Board index » cppbuilder » TMainMenu alignment question

TMainMenu alignment question


2004-09-01 05:34:23 PM
cppbuilder110
Hi everybody!
I've placed a TMainMenu object on my form and I've noticed there is no
simple way to control menu items alignment.
How can I force last inserted item (i.e. 'Help') to right align on the Form?
TIA
Davide.
 
 

Re:TMainMenu alignment question

Davide Puccioni < XXXX@XXXXX.COM >wrote:
Quote

[...] How can I force last inserted item (i.e. 'Help') to
right align on the Form?
Look at the Win32 APIs ModifyMenu and SetMenuItemInfo.
::ModifyMenu( MainMenu1->Handle, 0, MF_BYPOSITION | MF_POPUP | MF_HELP, HelpMenuItem->Handle, "&Help" );
~ JD