SIMPOL Documentation

wxrgbdialog()

Description

Displays a dialog (normally an OS common dialog) to allow the selection of a color. This can have a color value passed in as the default starting color. If the user exits via the OK button, the selected color will be returned in the rgb parameter.

Prototype

wxrgbdialog ( type(wxdialogparent) parent, string message, integer defaultrgb, integer rgb, string result )

Parameters

ParameterDefault valueType nameDescription
parent.nultype(wxdialogparent) Gives the parent of the common dialog, if any.
message""string The text shown in the title bar of the common dialog.
defaultrgb0integer This supplies the desired default color that should be pre-selected in the dialog.
rgb.nulinteger This will hold the color that was selected (if one was selected).
result.nulstring The result (either "ok" or "cancel") will be returned in the string object passed as this parameter. It must be an existing (preinitialized) object.