getCancelButton ();
The getCancelButton method returns the cancel button.
The Cancel button is an instance of the Button class.
To execute the example, create a dialog box for font setup named fontdialog, and a button named b that opens this dialog box (see Example of Creating the FontDialog Component). Add a handler for the Click button event:
b.Click.add(function (sender, args) { fontdialog.show(100, 100); fontdialog.getCancelButton().setEnabled(false); fontdialog.getOkButton().setEnabled(false); });
After executing the example clicking the button named b opens the created font selection dialog box where the OK and Cancel buttons are inactive.
See also: