EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Specifikace Strana 154

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 304
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 153
CHAPTER 4: User-Interface Tools Event handling 154
MouseEvent object functions
In addition to the functions defined for UIEvent base class, a mouse event has these functions.
shiftKey
Boolean When true, the SHIFT key was active. Value is undefined if the
keyIdentifier is for a modifier key.
type
String The name of the event that occurred. Mouse events types are:
mousedown
mouseup
mousemove
mouseover
mouseout
click
(detail = 1 for single, 2 for double)
The sequence of click events is:
mousedown, mouseup, click.
getModifierState()
eventObj.getModifierState (keyIdentifier)
keyIdentifier
A string containing a modifier key identifier, one of:
Alt
CapsLock
Control
Meta
NumLock
Scroll
Shift
Returns true if the given modifier was active when the event occurred, false otherwise.
initMouseEvent()
eventObj.initMouseEvent (eventName, bubble, isCancelable, view, detail,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
button, relatedTarget)
eventName
The event name string.
bubble
When true, the event should be triggered in ancestors of the target object
during the bubbling phase.
isCancelable
When true, the event can be cancelled.
view
The container or control object that dispatched the event.
detail
Sets the single-double click value for the click event.
screenX,
screenY
Sets the event coordinates relative to the screen.
clientX,
clientY
Sets the event coordinates relative to the target object. The origin is the top left
of the control or window, inside any border decorations.
ctrlKey,
altKey,
metaKey
Sets the modifier key states.
Zobrazit stránku 153
1 2 ... 149 150 151 152 153 154 155 156 157 158 159 ... 303 304

Komentáře k této Příručce

Žádné komentáře