| Directives |
|
| Formats |
|
||||||||||||||||||||||||
| Description | Use the SETMOUSE directive to define and control mouse events. By default, the mouse events are tied to the current window only. The SETMOUSE directive now supports fractional coordinates to two decimal places. | ||||||||||||||||||||||||
| *Note* | Only a single SETMOUSE directive can be active for the same region at any time. | ||||||||||||||||||||||||
| Format 1 | Define Mouse Region
Use this format to define the region in which a mouse event can occur. Use an optional asterisk to define the mouse event as being for all windows instead of just the current window. 0010 REM
ReturnCTL=4whenmousereleasedonline20incolumns0through 5
|
||||||||||||||||||||||||
| Format 2 | Use String to Define
Event
Use this format to define a character string to set the function the mouse event will generate. To remove a mouse event definition use a null "" expression. Use an optional asterisk to define the mouse event as being for all windows instead of just the current window. This logic returns CTL=6 whenever the mouse is released on the string 'Help' and CTL=4 on the string 'Quit'. Whenever the mouse is released on the word 'Calc', ProvideX calls "CALC" then returns to the current statement after "CALC" is executed. 0010 SETMOUSE ON |
||||||||||||||||||||||||
| Format 3 | Use Current Window Size
The first optional asterisk defines the mouse event as being for all windows instead of just the current window. Use the second asterisk "*" in this format to define the mouse region as equal to the dimensions of the current window. |
||||||||||||||||||||||||
| Format 4 | Clear All Settings: Use this format to remove all previously defined SETMOUSE regions. |
||||||||||||||||||||||||
| Format 5 | Enable/Disable Mouse
Use SETMOUSE ON to enable the mouse or SETMOUSE OFF to disable it. |
||||||||||||||||||||||||