Skip to main content

LensStudio:Ui.MessageBox.StandardButtons

Class

Collection of button options to display in the message dialog.

Example

// MessageBox.StandardButtons is a flag-set type used to specify
// which buttons appear in a MessageBox dialog. It has a protected
// constructor; pass individual StandardButton values cast to
// StandardButtons when calling MessageBox static methods.
//
// Example: show an information dialog with Ok button
MessageBox.information(
'Demo',
'StandardButtons specifies which buttons appear.',
MessageBox.StandardButton.Ok as unknown as MessageBox.StandardButtons,
MessageBox.StandardButton.Ok
);