Menu Item Event
- How-to
- Pete Yankovich
- PowerBuilder
- Thursday, 10 June 2021 08:33 PM UTC
Is there a way to dynamically change menu item event code?
The Retrieve menu item has this code in clicked event,
of_SendMessage ("pfc_retrieve")
I'd like to change that code to reference another event of the DW. There are other DW's on the screen with code in the pfc_retrieve event and I want to ensure that the correct DW event is being called when Retrieve is clicked.
This is code I've used to change tool bar item text.
im_MenuId = MenuId
m_pts_sheet lm_menu
lm_menu = im_MenuId
lm_menu.m_edit.m_undo.toolbaritemtext = "Reset"
Thanks for any help.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.