Package ctkDialogs provides standard dialogs which may be used in all
ctk modules and scripts.
- Set up dialogs
-
Standard dialogs are set up sending a message to the package std.
-
Example:
-
&std::ShowErrorDialog("Syntax error");
Author: marco
date: 29.09.2005
History
29.09.2005 take over methods from package main.
24.02.2006 mam MO02403
17.11.2007 version 1.05
13.03.2008 version 1.06
11.04.2008 version 1.07
27.05.2008 version 1.08
10.09.2008 version 1.09
18.09.2008 version 1.10
Get widget of type Photo of standard clickTk images.
Images must exists as ctk$image.gif in the current working directory
Images are stored into class data element images for reuse.
- Arguments
- Returns
-
None.
- Notes
-
None.
Build a compound image consisting of an image, and a text.
Typically used to build buttons.
See POD section of module Compound for details about args.
Call buildCompoundImage to build the compound image and put
the returned image into the iven widget.
Set up a modal dialog whitout an image.
- Arguments
- Returns
-
None.
- Notes
-
None.
Set up a standard dialog box.
- Arguments
-
Same as standard widget Dialogbox.
- Returns
-
Returns the text of the pressed button.
- Notes
-
None.
Show an error dialog.
- Arguments
-
Text to be displayed.
- Returns
-
None.
- Notes
-
None.
Set up an information dialog.
- Arguments
-
Text to be displayed.
- Returns
-
None.
- Notes
-
None.
Set up a warning dialog.
- Arguments
-
Text to be displayed.
- Returns
-
None.
- Notes
-
None.
Show the given message in a modal dialog.
- Arguments
-
- title
- message to be sent
- Returns
-
Always 1 .
- Notes
-
None.
Set up a dialog to request the user to accept or dismiss a question.
- Arguments
- Returns
-
True if the user press the Ok button, false otherwise.
- Notes
-
None.
Open a modal dialog to select files for subsequent open process.
Arguments
- initial file
- title
Return
Selected file or undef on 'cancel'
Open a modal dialog to delect files for subsequent save process.
Arguments
- initial file
- title
Return
Selected file or undef on 'cancel'
Get the name of a widget class.
- Arguments
- Returns
-
None.
- Notes
-
None.
Set up and execute the dialog to enter the metadata element 'order'
- Arguments
-
- widget id,
- widget class name,
- existing order
- Returns
-
- new order
- undef if cancel depressed
- Notes
-
None.
Obsolete see required script selectCursor.pl