GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TK::CHOOSECOLOR (3)

.ds Aq ’

NAME

Tk::chooseColor - pops up a dialog box for the user to select a color.

CONTENTS

SYNOPSIS

$color = $widget-><B>chooseColorB>?(-option=>value, ...)?;

DESCRIPTION

The method <B>chooseColorB> is implemented as a perl wrapper on the core tk command <B>tk_chooseColorB>, and $widget is passed as the argument to the hidden <B>-parentB> option. The implementation of internal <B>tk_chooseColorB> is platform specific, on Win32 it is a native dialog, and on UNIX/X11 it is implemented in terms of Tk::ColorEditor.

The <B>chooseColorB> method pops up a dialog box for the user to select a color. The following option-value pairs are possible as command line arguments:
<B>-initialcolorB>=>color Specifies the color to display in the color dialog when it pops up. color must be in a form acceptable to the <B>Tk_GetColorB> function.
<B>-parentB>=>$widget Makes $widget the logical parent of the color dialog. The color dialog is displayed on top of its parent window.
<B>-titleB>=>titleString Specifies a string to display as the title of the dialog box. If this option is not specified, then a default title will be displayed.
If the user selects a color, <B>tk_chooseColorB> will return the name of the color in a form acceptable to <B>Tk_GetColorB>. If the user cancels the operation, the command will return <B>undefB>.

EXAMPLE



 $widget->configure(-fg => $parent->chooseColor(-initialcolor => gray,
                                                -title => "Choose color"));



KEYWORDS

color selection dialog
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CHOOSECOLOR (3) 2013-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.