DtclTkDialogButOpts - Get/Set the options for the predefined button types used by DtclTkDialog

Function

Get/Set the options for the predefined button types used by DtclTkDialog

Description

DtclTkDialog supports three predefined button types. These types used predefind options. The three types are "Cancel", "Ok" and "Special" buttons - and DtclTkDialog uses flag characters to specify that the appropiate pre-defined options are used.

This command allows you to Get or Set the options for the button type.

These settings take effect from the next call to DtclTkDialogButOpts.

By default, Cancel buttons have a white foreground can red background, whilst Ok buttons have a green background and white foreground. The special button type has no particular defaults. Note, whilst colors are commonly changed, any options to the Tk "button" command can be specified

Call

DtclTkDialogButOpts CancelOkSpecial [options...]

Parameters

>typeCancelOkSpecialThe type of button for which we are setting or getting the options.

>argsstringsIf supplied, the options to be used for that button.

Example

      DtclTkDialogButOpts Special -fg gold -bg black

   This example sets the special button type (introduced by the + tag) to
   use a forground of gold and a background of black.

See Also

DTCL manual, DtclTkDialogButOpts()

Support

Tony Farrell, AAO

Click here for the DRAMA home page and here for the AAO home page.

 For more information, contact tony.farrell@mq.edu.au