KEMBAR78
Oracle Forms Mouse triggers | PPT
Oracle Forms-Mouse Triggers
http://ebiztechnics.blogspot.com
http://www.ebiztechnics.com
Objectives
• Define Mouse Events
• Mouse Position System Variables
• Describe Various Mouse Triggers
• Describe Mouse Button Actions
http://ebiztechnics.blogspot.com
Mouse Events
• Point at which processing can be influenced
• Identified by:
– Mouse movement
– Mouse button action
http://ebiztechnics.blogspot.com
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
Mouse Movement Triggers
• When-Mouse-Enter
• When-Mouse-Leave
• When-Mouse-Move
http://ebiztechnics.blogspot.com
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
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
Mouse Button Action Triggers
When-Mouse-Down
When-Mouse-Up
When-Mouse-Click
When-Mouse-Doubleclick
Click
Double Click
http://ebiztechnics.blogspot.com
Mouse Event Trigger Sequence
1. When-Mouse-Down
2. When-Mouse-Up
3. When-Mouse-Click
4. When-Mouse-Down
5. When-Mouse-Up
6. When-Mouse-Doubleclick
http://ebiztechnics.blogspot.com
Mouse Button Action System Variables
SYSTEM.MOUSE_BUTTON_PRESSED
SYSTEM.MOUSE_BUTTON_MODIFIERS
1
2
3
Shift Ctrl Alt
http://ebiztechnics.blogspot.com
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

Oracle Forms Mouse triggers

  • 1.
  • 2.
    Objectives • Define MouseEvents • Mouse Position System Variables • Describe Various Mouse Triggers • Describe Mouse Button Actions http://ebiztechnics.blogspot.com
  • 3.
    Mouse Events • Pointat 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
  • 5.
    Mouse Movement Triggers •When-Mouse-Enter • When-Mouse-Leave • When-Mouse-Move http://ebiztechnics.blogspot.com
  • 6.
    Mouse Position SystemVariables 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 SystemVariables 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
  • 8.
    Mouse Button ActionTriggers When-Mouse-Down When-Mouse-Up When-Mouse-Click When-Mouse-Doubleclick Click Double Click http://ebiztechnics.blogspot.com
  • 9.
    Mouse Event TriggerSequence 1. When-Mouse-Down 2. When-Mouse-Up 3. When-Mouse-Click 4. When-Mouse-Down 5. When-Mouse-Up 6. When-Mouse-Doubleclick http://ebiztechnics.blogspot.com
  • 10.
    Mouse Button ActionSystem Variables SYSTEM.MOUSE_BUTTON_PRESSED SYSTEM.MOUSE_BUTTON_MODIFIERS 1 2 3 Shift Ctrl Alt http://ebiztechnics.blogspot.com
  • 11.
    Summary • Changing themouse 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

Editor's Notes

  • #8 Technical Note The SYSTEM.MOUSE_FORM system variable is NULL if the platform is not A GUI platform.
  • #10 Technical Note Click and double-click work only if the mouse stays on the item (or canvas) Throughout the down-up action.