OnButton  Check

The OnButton event is called when the user clicks on the control.

Syntax

Check.OnButton(
     Integer btn,
     Integer x,
     Integer y,
     Integer xscreen,
     Integer yscreen)

Parameters

btnValue list that can be used:
BTN_LDOWN, BTN_LUP, BTN_LCLICK, BTN_LDBCLICK, BTN_MDOWN, BTN_MUP, BTN_MCLICK, BTN_MDBCLICK, BTN_RDOWN, BTN_RUP, BTN_RCLICK, BTN_RDBCLICK
xHorizontal client-position of the cursor.
yVertical client-position of the cursor.
xscreenHorizontal screen-position of the cursor.
yscreenVertical screen-position of the cursor.

Return value

The OnButton event has no return values.

Example

message Application.Check.OnButton(Integer btn, Integer x, Integer y, Integer xscreen, Integer yscreen)
{
    // Get the name of the Check object instance
    switch caller.GetControlName()
    
        // MYCONTROL
        case "MYCONTROL"
            switch btn
                case BTN_LDOWN
                    break
                case BTN_RCLICK
                    m_menu.ShowPopup(xscreen, yscreen)
                    break
            end
            break
    
        // Other controls...
    
    end
}
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia