Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
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