Clicking Buttons to Perform Action


 

The easiest way to allow the user to interact with an application is to provide a button to click. You can use the command button control provided, or you can create your own "button" using an ICON control containing a graphic.

 

Using Command Buttons

 

Most GUI applications have command buttons that allow the user to simply click them to perform actions. When the user chooses the button, it not only carries out the appropriate action, it also looks as if it's being pushed in and released. When the user clicks a button, the Click event routine is invoked. You place code in the Click event routine to perform any action you choose.

 

There are many ways to choose a command button at run time:
 

 

     call cmdClose_Click

 

 

All these actions cause Visual PL/B to invoke the Click event procedure.



PL/B IDE Studio Help Understanding Properties, Events, and Methods Menu Basics