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 Tech Support » Avoid the popup menu when right clicked on advanced prof-ui tool bar Collapse All
Subject Author Date
howard liu May 26, 2008 - 5:57 AM

Hi,


I have enabled Prof-UI tool bars for several of the user interfaces in my application. These are dockable Prof-UI tool bars. There is a feature that allows one to see a popup menu showing list of tool bars, when right clicked either on the tool bar or within the non-client area near the tool bar. Is there a possibility to make this popup menu NOT  TO appear upon right click


Thanks,


Howard


 

howard liu May 27, 2008 - 11:46 AM

Hi,


 


Thanks for the links. The link that you have provided is going to be very informative and useful to us for the improvements that we want to make over the popup menus.


Also presently we are looking for an equivalent method in Prof-UI for the MFC method called ’InsertMenuItem()’. Is there a equivalent for this method in Prof-UI that will enable us to add menu items to the existing menu list statically. That is we are looking at an alternative to overriding the _UpDateMenuBar(). We would like to have a solution by having a method that would insert a menu item to the menu bar from being any where in the application (NOT specifically only through the _UpDateMenuBar() handler). 


Thanks,


Howard


 

Technical Support May 28, 2008 - 4:26 AM

The CExtMenuControlBar::GetMenu() method returns a Win32 menu tree that is currently displayed in the menu bar. This menu can be different in the MDI environment depending on which MDI child frame window is active. This menu is static and persistent in the SDI environment. In the latter case, you can modify this menu and call CExtMenuControlBar::UpdateFromMenu() method to rebuild the menu bar’s buttons. But Prof-UIS popup menus, including those displayed from menu bar’s buttons require all menu command be registered in the command manager. So, you should also update the command manager from your dynamically re-constructed menus by using g_CmdManager->UpdateFromMenu() code.

The Prof-UIS popup menus based on the CExtPopupMenuWnd class are always dynamic. The CExtPopupMenuWnd-based menu tree is always constructed in dynamically allocated C/C++ memory, displayed on the screen with CExtPopupMenuWnd::TrackPopupMenu() and left without being manually destructed. The popup menus always destroy themselves automatically when the menu is closed.

Prof-UIS also supports customizable toolbars and menus with or without COM wrapper objects implemented in the ProfAuto library. The customizable toolbars and menus are really the most configurable UI ever implemented in Windows and used in many Microsoft applications including a set of MS Office and Visual Studio versions. You can see simplest possible customizable UI in the StyleEditor sample application. The Pluggable sample demonstrates how to build customizable toolbars and menus dynamically using a set of DLL modules as EXE plugins. Each found DLL module uses its own command(s) in the customizable UI implemented in the main frame window of this sample. The ActiveScripts sample uses a customizable UI with COM wrapper objects provided by the ProfAuto library. This sample allows some scripts to register their commands and input fields in toolbars and menus. It also allows these scripts to handle events of toolbar and menu items.

Technical Support May 26, 2008 - 12:37 PM