Greetings,
Background Info:
PB Version: 10.5
Platform: Windows Vista
I would like to be able to trigger an event inside a datawindow control from a popup menu. The menu is separated from the dw control therefore the menu doesn't know the name of the dw control ahead of time but I can guarantee it will be a dw control and the event will be there at runtime.
I read something about the dynamic keyword which might be what I am looking for but not sure how to code the menu.
Currently my solution is this:
Menu object
menu item clicked event
parentwindow.triggerevent(
"we_create
_pdf")
Effectively this is triggering a custom window event which in turns triggers:
dw.triggerevent("ue_create
_pdf")
This works but was hoping I could directly trigger the dw event and not go through the parentwindow.
My challenge is to code the menu clicked event to trigger an event inside the dw control directly even though I won't know the name of the dw control at compile time but I will know the name of the event ahead of time. Therefore I need to be able to tell the menu it will be there at run time but have it compile.