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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 106
CHAPTER 4: User-Interface Tools ScriptUI class 107
ScriptUI class functions
events.createEvent()
ScriptUi.events.createEvent (eventType)
eventType
The type of event, one of:
UIEvent
KeyboardEvent
MouseEvent
This function is in the JavaScript object contained in the events property. It returns an event object
of the appropriate type:
X A UIEvent base class encapsulates input event information for an event that propagates
through a container and control hierarchy. This is a base class for the more specialized keyboard
and mouse event types.
X A KeyboardEvent object encapsulates information about keyboard input events.
X A MouseEvent object encapsulates information about mouse events.
This object is passed to a function that you register to respond to events of a certain type that occur
in a window or control. Use
windowObj.addEventListener() or controlObj.addEventListener() to
register a handler function. See
Registering event listeners for windows or controls” on page 82.
getResourceText()
ScriptUI.getResourceText (text)
text
The text to match.
Finds and returns the resource for a given text string from the host application’s resource data. If no
string resource matches the given text, the text itself is returned.
Returns a String.
newFont()
ScriptUI.newFont ( name, style, size );
name
The font or font family name string.
style
The font style string or an enumerated value from ScriptUI.FontStyle.
size
The font size in points, a number.
Creates a new font object for use in text controls and titles.
Returns a ScriptUIFont object
.
Vista de página 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 303 304

Comentários a estes Manuais

Sem comentários