Jaa


FormControl.mouseEnter(Int32, Int32, Int32, Boolean, Boolean) Method

Definition

Is called when the user moves the mouse pointer into the control area.

public:
 virtual void mouseEnter(int _x, int _y, int _button, bool _Ctrl, bool _Shift);
public virtual void mouseEnter (int _x, int _y, int _button, bool _Ctrl, bool _Shift);
abstract member mouseEnter : int * int * int * bool * bool -> unit
override this.mouseEnter : int * int * int * bool * bool -> unit
Public Overridable Sub mouseEnter (_x As Integer, _y As Integer, _button As Integer, _Ctrl As Boolean, _Shift As Boolean)

Parameters

_x
Int32

A Boolean value that indicates whether the SHIFT key is down.

_y
Int32

A Boolean value that indicates whether the SHIFT key is down.

_button
Int32

A Boolean value that indicates whether the SHIFT key is down.

_Ctrl
Boolean

A Boolean value that indicates whether the SHIFT key is down.

_Shift
Boolean

A Boolean value that indicates whether the SHIFT key is down.

Remarks

The following example shows how to display the parameters of a mouseEnter event in the Infolog.

public void mouseEnter(int x,  
                      int y,  
                      int button, 
                      boolean Ctrl, 
                      boolean Shift) 
{ 
    if (Shift) 
    { 
        info("Shift set"); 
    } 
    if (Ctrl) 
    { 
        info("Ctrl set"); 
    } 
    info (strfmt("x, y: %1 %2 button: %3", x, y, button)); 
}

Applies to