Equinox Online Help - Language Reference - A to Z
AlertButtons |
|
---|---|
Applies to | |
Syntax | AlertButtons [Label1Expression, Label2Expression, Label3Expression, Label4Expression] [, DefaultButton], DisabledButtons |
Action | [Statement] Sets up the dialog buttons for the Alert dialog. |
Scope | Usable anywhere. |
Notes | This statement sets up the Alert dialog. Upto four text arguments may be supplied, each of which defines a button on the dialog. If three arguments are supplied then three buttons appear and so on. Each text argument appears on the corresponding button. The last argument DefaultButton specifies which button will have the focus when the Alert dialog is displayed. If you use this argument, you must include all four preceding commas, even if you don't use all four buttons. The 'DisbabledButtons' parameter controls which buttons are disabled using a combination of the following numbers.
E.g. to disable buttons 1 & 4, the 'DisbabledButtons' value should be set to 9. If you omit all arguments, the Alert dialog reverts to a single OK button. If you try to disable all four alertbuttons (using 15 as the disabled buttons parameter) then buttons 2,3 & 4 are disabled leaving button 1 enabled. |
Category | User dialogs |
See Also | Alert, AlertBitmaps, Beep, Edit, HelpAbout, Input, InputPassword, Message, PopupColour_PopupColor, PopupFlags, PopupFont, PopupJustification, PopupSize, PopupTitle, StatusLine |
Example | The following method could be attached to an edit button on a form. AlertButtons "No", "Yes" This example will display a Alert Dialog with four buttons, two of which are disabled: AlertButtons "Group A", "Group B","Group C","Group D",3,10 |