The features described in this topic are obsolete
and should not be used in new IDL code.

WIDGET_CONTROL

The following keywords to the WIDGET_CONTROL function are obsolete.

Keywords

CANCEL_BUTTON

This keyword applies to widgets created with the WIDGET_BASE function using the MODAL keyword.

Set this keyword equal to the widget ID of a button widget that will be the Cancel button on a modal base widget.

On Motif and Windows platforms, selecting Close from the system menu (generally located at the upper left of the base widget) generates a button event for the Cancel button.

DEFAULT_BUTTON

This keyword applies to widgets created with the WIDGET_BASE function using the MODAL keyword.

Set this keyword equal to the widget ID of a button widget that will be the default button on a modal base widget. The default button is highlighted by the window system.