DoAlert
DoAlert [/T=titleStr] alertType, promptStr
The DoAlert operation displays an alert dialog and waits for user to click a button.
Parameters
| alertType = |
| ||||||
| promptStr | Text displayed in the alert dialog. | ||||||
Flags
| /T=titleStr | Changes the title of the dialog window from the default title. | |
Details
| DoAlert sets the special variable | |||||||
| V_flag = |
| ||||||
As of Igor 10, promptStr can contain a subset of HTML 4. For a description of the supported HTML 4 subset, see https://doc.qt.io/qt-6/richtext-html-subset.html
Example
Macro example()
String msg= "<p style=\"color:red;\">This is red text.</p>"
msg += "<p>Click <a href=\"https://www.wavemetrics.com/\">here to buy Igor</a>.</p>"
DoAlert/T="Buy Igor!" 0, msg
End