Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Neville Franks
|
May 23, 2007 - 6:53 PM
|
I’ve found a problem where the menu width isn’t correct when I use CExtPopupMenuWnd::MENUITEMDATA::SetAccelText(). ie. The width of the accellerator text isn’t taken into account and it overlaps the menu text. Calling _md.MeasureItem( NULL ); in my code fixed the problem. Should this be included in CExtPopupMenuWnd::MENUITEMDATA::SetAccelText()?
I’m using Prof-UIS V2.62
Neville
|
|
Technical Support
|
May 24, 2007 - 9:41 AM
|
The accelerator text in the menu items is measured only in non-customizable menus which are not based on command tree nodes. The customizable menus get the accelerator text automatically from the accelerator table. Please provide us with additional information about menu items you are constructing and the type of popup menu you are using there.
|
|
Neville Franks
|
May 31, 2007 - 6:04 PM
|
I’m setting the accelerator text on some items on a popup menu created using CExtPopupMenuWnd. The menu comes from the .RC file, however I need to explicitely set the accelerator text for several items.
|
|
Technical Support
|
Jun 1, 2007 - 9:55 AM
|
You can do this by setting accelerators in the accelerator table so you do not need to modify menus manually.
|
|