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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 226
CHAPTER 8: ExtendScript Tools and Features User notification dialogs 227
For example:
today = {
en: "Today is %1/%2",
de: "Heute ist der %2.%1."
};
d = new Date();
alert (localize (today, d.getMonth()+1, d.getDate()));
User notification dialogs
ExtendScript provides a set of globally available functions that allow you to display short messages to the
user in platform-standard dialog boxes. There are three types of message dialogs:
X Alert — Displays a dialog containing a short message and an OK button.
X Confirm — Displays a dialog containing a short message and two buttons, Yes and No, allowing the
user to accept or reject an action.
X Prompt — Displays a dialog containing a short message, a text entry field, and OK and Cancel
buttons, allowing the user to supply a value to the script.
These dialogs are customizable to a small degree. The appearance is platform specific.
Global alert function
Displays a platform-standard dialog containing a short message and an OK button.
Examples
This figure shows simple alert dialogs in Windows and in Mac OS.
alert()
alert (message[, title, errorIcon]);
message
The string for the displayed message.
title
Optional. A string to appear as the title of the dialog, if the platform supports a title.
Mac OS does not support titles for alert dialogs. The default title string is "Script Alert."
errorIcon
Optional. When true, the platform-standard alert icon is replaced by the
platform-standard error icon in the dialog. Default is false.
Returns
undefined
Vista de página 226
1 2 ... 222 223 224 225 226 227 228 229 230 231 232 ... 303 304

Comentários a estes Manuais

Sem comentários