Call an Event Handler

Good morning. I have in one button, a series of operations. I would like to invoke the button’s Pressed event. Possible ? In VB6 it was called “Call Button.pressed()” , and in Xojo?

Move the code to a method called DoStff. Call that from the button.pressed and anywhere else.

2 Likes

You can make:
MyPushButton.Press
But Julian’s method is better (I think). It depends if you want that the user see the click of the button as if he clicked it himself.

1 Like

Ok Perfect.