Hi,
Just started writing code again after a break of 8 or more years and I have have not been able to work out how to pass a reference to a button from its button click event in the main module to a sub in the BX module.
The tag value of the button contains data I want to use. I can cycle through the objects on the screen using btn = pnl.getview(i) and access the tag value that way, but how to I know which of the buttons is the one that was clicked as I cant find a way to pass the object explicitly from the click event or to access the button name to compare it to the name derived from the click event.
Thanks
Robert
Just started writing code again after a break of 8 or more years and I have have not been able to work out how to pass a reference to a button from its button click event in the main module to a sub in the BX module.
The tag value of the button contains data I want to use. I can cycle through the objects on the screen using btn = pnl.getview(i) and access the tag value that way, but how to I know which of the buttons is the one that was clicked as I cant find a way to pass the object explicitly from the click event or to access the button name to compare it to the name derived from the click event.
Thanks
Robert