kmx > IUP-0.101 > IUP::ColorDlg

Download:
IUP-0.101.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: IUP-0.202_1

NAME ^

IUP::ColorDlg - [pre-defined dialog] selecting color

DESCRIPTION ^

Creates the Color Dialog element. It is a predefined dialog for selecting a color.

GTK
Windows
ColorBrowser
based

There are 3 versions of the dialog. One for Windows only, one for GTK only and one for all systems, but it is based on the IUP::ColorBrowser.

The Windows and GTK dialogs can be shown only with the Popup function. The IUP::ColorBrowser based dialog is a IUP::Dialog that can be shown as any regular IUP::Dialog.

IMPORTANT: In perl IUP bindings only IUP::ColorBrowser based dialog is available (because perl bindings automatically initializes the Controls Library after that the Windows and GTK dialogs are not available anymore).

USAGE ^

CREATION - new() method

 $colordlg = IUP::ColorDlg->new( VALUE=>"100 100 0" );

Returns: the identifier of the created element, or undef if an error occurs.

NOTE: You can pass to new() other ATTRIBUTE=>'value' or CALLBACKNAME=>\&func pairs relevant to this element - see IUP::Manual::02_Elements.

ATTRIBUTES

For more info about concept of attributes (setting/getting values etc.) see IUP::Manual::03_Attributes. Attributes specific to this element:

CALLBACKS

For more info about concept of callbacks (setting callback handlers etc.) see IUP::Manual::04_Callbacks. Callbacks specific to this element:

NOTES ^

The GTK and Windows dialogs are native pre-defined dialogs that are not altered by SetLanguage. To show the dialog, use function Popup. The dialog is mapped only inside Popup, Map does nothing.

EXAMPLES ^

The element IUP::ColorDlg is used in the following sample scripts:

SEE ALSO ^

IUP::MessageDlg, IUP::FileDlg, Popup

The original doc: iupcolordlg.html

syntax highlighting: