2. Objectives
• Define Mouse Events
• Mouse Position System Variables
• Describe Various Mouse Triggers
• Describe Mouse Button Actions
http://ebiztechnics.blogspot.com
3. Mouse Events
• Point at which processing can be influenced
• Identified by:
– Mouse movement
– Mouse button action
http://ebiztechnics.blogspot.com
4. Mouse Cursor Style
• To change the cursor style dynamically
SET_APPLICATION_PROPERTY(CURSOR_STYLE,‘Value’);
DEFAULT
BUSY
CROSSHAIR
HELP
INSERTION
Arrow symbol
Busy symbol
Crosshair symbol
Help symbol
Insertion symbol
http://ebiztechnics.blogspot.com
6. Mouse Position System Variables
SYSTEM.MOUSE_ITEM The name of the item the mouse is
currently in.
SYSTEM.MOUSE_CANVAS The name of the canvas which the
mouse is currently in.
SYSTEM.MOUSE_X_POS The current mouse X-coordinate
on the canvas
SYSTEM.MOUSE_Y_POS The current mouse Y-coordinate
on the canvas
SYSTEM.MOUSE_RECORD The record number of the record
the mouse is in.
http://ebiztechnics.blogspot.com
7. Mouse Position System Variables
SYSTEM.MOUSE_RECORD_OFFSET The offset from the first
visible record that the mouse
is in.
SYSTEM.MOUSE_FORM The name of the form the
mouse is currently in.
http://ebiztechnics.blogspot.com
10. Mouse Button Action System Variables
SYSTEM.MOUSE_BUTTON_PRESSED
SYSTEM.MOUSE_BUTTON_MODIFIERS
1
2
3
Shift Ctrl Alt
http://ebiztechnics.blogspot.com
11. Summary
• Changing the mouse cursor style
• Respond to mouse movement
– Mouse position system variables
– Mouse movement triggers
• Respond to mouse button actions
– Mouse button system variables
– Mouse button triggers
http://ebiztechnics.blogspot.com
Notes de l'éditeur
Technical Note
The SYSTEM.MOUSE_FORM system variable is NULL if the platform is not
A GUI platform.
Technical Note
Click and double-click work only if the mouse stays on the item (or canvas)
Throughout the down-up action.