Board index » cppbuilder » TMenu - control width of Items

TMenu - control width of Items

Hi,
How can one set the width of TMenu items?

Thanx,
Sharon

 

Re:TMenu - control width of Items


You have to ownerdraw the menu items in order to do that.  Set the OwnerDraw
property of the parent TMenu (TMainMenu or TPopupMenu, you didn't specify
which) to true and then use the OnMeasureItem event for the individual items
to specify the widths.  You'll probably have to use the OnDrawItem event as
well to draw the item text yourself, since the menus are set to OwnerDraw.

Gambit

Quote
"Sharon Dafner" <sha...@pamam.com> wrote in message

news:3e34d81d@newsgroups.borland.com...
Quote
> How can one set the width of TMenu items?

Other Threads