DlgButton.SetProperties

DlgButton.SetProperties ( 

number ControlID,

table  Properties )

Example 1

DlgButton.SetProperties(CTRL_BUTTON_HELP, tProperties);

Sets the properties of the help button to those contained in the table called "tProperties."

Example 2

DlgButton.SetProperties(CTRL_BUTTON_CANCEL, {Visible = false, Enabled = false});

Disables and hides the Cancel button on the current screen.

Example 3

tButtonProperties = DlgButton.GetProperties(nControlID);

if not tButtonProperties.Visible then
    tButtonProperties.Visible = true;
    DlgButton.SetProperties(nControlID, tButtonProperties);
end

Gets the properties of the button whose id is stored in nControlID.  If this button is currently not visible, it is made visible using the DlgButton.SetProperties action.

See also:  Related Actions