2.228 .msgboxtext[enum]
This attribute defines the text for buttons in a messagebox. If a button text is not supported by the window system used, .msgboxtext is ignored.
-
Data type
object [ text ], string
-
Access
get, set
-
changed event
yes
Some window systems (Microsoft Windows) have fixed button texts and do not allow labeling by the user. Other systems (Motif) do not define texts and allow the application to define them (internationalization).
.msgboxtext has an index. The index can assume values of type enum, with the form button_…
. The values are texts (text resources or strings) which contain the strings of the seven available buttons (see objects messagebox and dialog). Usually, the buttons strings are OK, Cancel, Retry, Abort, Ignore, Yes, No.
Index Range
- button_abort
-
Defines the caption for the
Abort
button. - button_cancel
-
Defines the caption for the
Cancel
button. - button_ignore
-
Defines the caption for the
Ignore
button. - button_no
-
Defines the caption for the
No
button. - button_ok
-
Defines the caption for the
OK
button. - button_retry
-
Defines the caption for the
Retry
button. - button_yes
-
Defines the caption for the
Yes
button.
Example with German Texts
dialog Test { .msgboxtext[button_ok] "OK"; .msgboxtext[button_cancel] "Abbrechen"; .msgboxtext[button_retry] "Wiederholen"; .msgboxtext[button_abort] "Abbrechen"; .msgboxtext[button_ignore] "Ignorieren"; .msgboxtext[button_yes] "Ja"; .msgboxtext[button_no] "Nein"; }
See also
Obje