cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

ProUITree Popup Menu

BobMonat
1-Visitor

ProUITree Popup Menu

I am having trouble getting a pop-up menu (RMB) working for a ProUITree.
Any advice would be appreciated.

In the routine to create the dialog:
ProUIDialogCreate()
ProNotificationSet (PRO_POPUPMENU_CREATE_POST, (ProFunction)
exportDialogPopupCreate);
ProUIDialogActivate (DIALOG_NAME, &status);
ProUIDialogDestroy (DIALOG_NAME);
ProNotificationUnset (PRO_POPUPMENU_CREATE_POST);

The function exportDialogPopupCreate() never gets called despite the dialog
with the tree showing is displayed.

Is there any special way or locatioon to right-click? Any enabling function
that needs to be invoked?

Thanks,
Bob

Bob Monat
Jerand Technical Services, Inc.
bob@jerand.com
www.jerand.com
1-317-875-6087

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Hi Bob,


I create RMB Menus in the .res files. I don't know if it is possible this way for your problem.


Declare the RMB:


(MenuPane CLV_OpenMenu
(Components
(PushButton CLV_Open)
(PushButton CLV_Insert)
(PushButton CLV_Mapkey)
(PushButton CLV_OpenPathInExplorer)
)

(Resources
(CLV_Open.Label "Open")
(CLV_Open.Bitmap "clv_open.gif")
(CLV_Insert.Label "Insert")
(CLV_Mapkey.Label "Mapkey")
(CLV_OpenPathInExplorer.Label "Open Path in Explorer")
(.AttachLeft True)
(.AttachRight True)
(.AttachTop True)
(.AttachBottom True)
! (.VisbileInMenubar 0)
)
)


And bind it inside the Resources declaration:


.......


(CLV_List.PopupMenu "CLV_OpenMenu")


.......



After that you can change all the insides like you want. I want to change the options are shown inside the RMBM for the different elements you can choose inside a list (so should be the same inside a tree). So I redeclare the .visible options (ProUIPushbuttonShow / ProUIPushbuttonHide) inside the RMB menu. So the menu is everytime the same, only the shown options change. For the changes I use the select action from the list item (should be also possible on a tree).



Best regards,


Eike

Announcements


Top Tags