EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 155

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 154
CHAPTER 4: User-Interface Tools Graphic customization objects 155
Keyboard state object
This JavaScript object reports the active state of the keyboard at any time; that is, the current key that is
down and any modifiers that are pressed. It is independent of the event-handling system, and is available
through the
ScriptUI.environment object:
myKeyState = ScriptUI.environment.keyboardState;
The object has the following properties:
Graphic customization objects
These objects provide the ability to customize the appearance of user-interface controls before they are
drawn:
ScriptUIGraphics object
ScriptUIBrush object
ScriptUIFont object
ScriptUIImage object
ScriptUIPath object
ScriptUIPen object
In addition, the Custom element class (if supported by the Adobe application you are using) allows you to
define completely customized UI elements that are rendered by the application in a manner you define.
ScriptUIGraphics object
Most types of user-interface elements have a graphics property which contains an object of this type,
which allows you to customize aspects of the elements appearance, such as the color and font. Use an
onDraw
callback function to set these properties or call the functions.
All measurements are in pixels.
button
Sets the mouse button.
relatedTarget
Optional. Sets the related target, if any, for a mouseover or mouseout event.
Reinitializes the object, allowing you to change the event properties after construction. Arguments
set the corresponding properties.
Returns
undefined.
keyName
String The name of the key currently pressed. This is the JavaScript name, a
string such as "A" or "a".
shiftKey
ctrlKey
altKey
metaKey
Boolean True if the named modifier key is currently active.
Vista de página 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 303 304

Comentários a estes Manuais

Sem comentários