-
Book Overview & Buying
-
Table Of Contents
Tcl/Tk 8.5 Programming Cookbook
The tk_messageBox command displays a message window with a defined message, an icon and a collection of command buttons and waits on the user's response. The return value provided is the symbolic value (see the type option in the following table) assigned to the button selected.
The syntax is as follows:
tk_messageBox option value …
The tk_messageBox command accepts one or more option value pairs as detailed below. If no option value pairs are provided the command will display an empty window with an OK button.
|
Option |
Interpretation |
|---|---|
|
|
Designates which button is the default. |
|
|
Displays a secondary message to the message provided by the –message option. |
|
|
Sets the icon to display, based on the value referenced by name. Acceptable values are: error, info (default), question, or warning. |
|
|
Sets the message to be displayed |
|
|
Specifies the parent of the dialog. The dialog is displayed on... |
Change the font size
Change margin width
Change background colour