Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » Remove chevron from menu in a dialog Collapse All
Subject Author Date
Emmanuel Verguet Mar 3, 2006 - 8:06 AM

I have added a menu to my dialog (following your documentation in ’Dialog-based Applications’ chapter).
All is ok, except that when i first click on the menu, menu are cropped, showing a chevron to expand it. After a short time, the menu is expanded automaticaly.

How can I have, by default, my menu expanded ?

Thanks.

Technical Support Mar 3, 2006 - 9:27 AM

If you want to disable the most recently used menu items, there are two ways to do this:

1) Add these two lines to your initialization code:

CExtPopupMenuWnd::g_bMenuExpanding = false;
CExtPopupMenuWnd::g_bMenuHighlightRarely = false;
2) Use g_CmdManager->SetBasicCommands() to make all your commands basic i.e. initially visible in your menus.

The first is preferable.