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 » CMenu port to ProfUIS Collapse All
Subject Author Date
Eugen Rata Jul 4, 2005 - 1:54 PM

Hello

First, congratulations for such a good library
Second, I have a few questions.
1. I have such an MFC code
CMenu menu;
CMenu *pPopup = NULL;
// Show a popup menu for an object    
VERIFY(menu.LoadMenu(IDR_OBJECT_ACTION));

pPopup = menu.GetSubMenu(0);
ASSERT(pPopup != NULL);
pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,
X + rect.left, Y + rect.top, this);

what is easiest way to port it to ProfUIS Popup menus?

2. As I read from forum, if (1) is ported to CExtPopupMenuWnd then I’ll not receive anymore the message OnInitPopupMenu. Which is the way to enable/disable needed menu items in the popup menu which will apear? I don’t want to use command manager for this.

3. If I create the popup menu dynamically using command manager (as I saw somewhere in forum) which is the way to handle notifications from its items?

4. is there available the documentation for the people who is using a free version of ProfUIS? If yes, where I can download it?

Thx a lot!

Technical Support Jul 5, 2005 - 12:46 PM

We just updated the article titled How to use pop-up menus in your application. Please read it and if you encounter any difficulties contact us again.

Eugen Rata Jul 6, 2005 - 1:07 AM

thanks, that article helped a bunch.

but here again is one question. when I create dynamically menu items they are disabled because there is no update | command handler. how to enable them and how track OnClick,OnUpdatePopupMenu commands on them.

Regards,
Eugen