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 » Impossible to disable a sub-pupup menu Collapse All
Subject Author Date
Matteo Codda Sep 5, 2008 - 3:53 AM


I have found a problem:


I create a dynamic menubar (derivde from CExtMenuControlBar) and I use the AppendMenu function to insert item inside the bar at run-time.


To enable/disable the items I use the UI_UPDATE mechanism as you have described in a lot of posts. But for items without an UID (like popup items) I can’t use this way!!!


For the "main" popups i use the toolbar-derived function "SetButtonStyle(n,TBBS_DISABLED)" with some changes on handler "WM_LBUTTOMUP".


But for the popup inside an other popup I don’t have found any solution!!!


Can you help me, please ?


Kind regards,


Matteo


Technical Support Sep 6, 2008 - 1:24 PM

Popup sub-menus should not become disabled and the user should be able to see the menu structure always. Disabled popup sub-menu items are conflicting with all the know UI designs. You should disable only menu command items.