ctkDialogs

        Package ctkDialogs provides standard dialogs which may be used in all
        ctk modules and scripts.

Programming notes

Set up dialogs
        Standard dialogs are set up sending a message to the package std.
        Example:
                &std::ShowErrorDialog("Syntax error");

Maintenance

        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


Methods

getImage

        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.

buildCompoundImage

        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.

buildAndSetCompoundImage

        Call buildCompoundImage to build the compound image and put
        the returned image into the iven widget.

fontExists

ShowDialog

        Set up a modal dialog whitout an image.
Arguments
Returns
        None.
Notes
        None.

ShowDialogBox

        Set up a standard dialog box.
Arguments
        Same as standard widget Dialogbox.
Returns
        Returns the text of the pressed button.
Notes
        None.

ShowErrorDialog

        Show an error dialog.
Arguments
        Text to be displayed.
Returns
        None.
Notes
        None.

ShowInfoDialog

        Set up an information dialog.
Arguments
        Text to be displayed.
Returns
        None.
Notes
        None.

ShowWarningDialog

        Set up a warning dialog.
Arguments
        Text to be displayed.
Returns
        None.
Notes
        None.

showMessage

        Show the given message in a modal dialog.
Arguments
        - title
        - message to be sent
Returns
        Always 1 .
Notes
        None.

askYN

        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.

selectFileForOpen

        Open a modal dialog to select files for subsequent open process.
        Arguments
                - initial file
                - title
        Return
                Selected file or undef on 'cancel'

selectFileForSave

        Open a modal dialog to delect files for subsequent save process.
        Arguments
                - initial file
                - title
        Return
        Selected file or undef on 'cancel'

dlg_getSingleValue

dlg_getWidgetClass

        Get the name of a widget class.
Arguments
Returns
        None.
Notes
        None.

dlg_getOrder

        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.

dlg_selectCursor

        Obsolete see required script selectCursor.pl

pickColor

getColor

ColorPicker

color_Picker


Back to index