Checking button

To check the status of a button is pressed or not, we can use the following function.

ui_button_clicked(control);

Return: Boolean

Argument control is the handle of ui_button_create(...); function to be checked.

if (ui_button_clicked(buttonLogin))
{
  Show_message ("Login Success!");
}

The above line of code used to display the message "Login Success!" If the button buttonLogin is pressed.

results matching ""

    No results matching ""