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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 121
CHAPTER 4: User-Interface Tools Window object 122
Window event-handling callbacks
The following callback functions can be defined to respond to events in windows. To respond to an event,
define a function with the corresponding name in the
Window instance. These callbacks are not available
for other container types (controls of type
panel or group).
Callback Description
onActivate
Called when the user make the window active by clicking it or otherwise making it
the keyboard focus.
onClose
Called when a request is made to close the window, either by an explicit call to the
close()
function or by a user action (clicking the OS-specific close icon in the title
bar).
The function is called before the window actually closes; it can return false to cancel
the close operation.
onDeactivate
Called when the user makes a previously active window inactive; for instance by
closing it, or by clicking another window to change the keyboard focus.
onDraw
Called when a container or control is about to be drawn. Allows the script to modify
or control the appearance, using the control’s associated ScriptUIGraphics object
.
Handler takes one argument, a DrawState object
.
onMove
Called when the window has been moved.
onMoving
Called while a window in being moved, each time the position changes. A handler
can monitor the move operation.
onResize
Called when the window has been resized.
onResizing
Called while a window is being resized, each time the height or width changes. A
handler can monitor the resize operation.
onShortcutKey
(In Windows only) Called when a shortcut-key sequence is typed that matches the
shortcutKey
value for this window.
onShow
Called when a request is made to open the window using the show() method, before
the window is made visible, but after automatic layout is complete. A handler can
modify the results of the automatic layout.
Vista de página 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 303 304

Comentários a estes Manuais

Sem comentários