tk_chooseColor(1T) Tk Built-In Commands tk_chooseColor(1T)__________________________________________________________________________________________________________________________________________________NAME
tk_chooseColor - pops up a dialog box for the user to select a color.
SYNOPSIS
tk_chooseColor ?option value ...?
_________________________________________________________________DESCRIPTION
The procedure tk_chooseColor pops up a dialog box for the user to select a color. The following option-value pairs are possible as command
line arguments:
-initialcolor color
Specifies the color to display in the color dialog when it pops up. color must be in a form acceptable to the Tk_GetColor function.
-parent window
Makes window the logical parent of the color dialog. The color dialog is displayed on top of its parent window.
-title 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 dis-
played.
If the user selects a color, tk_chooseColor will return the name of the color in a form acceptable to Tk_GetColor. If the user cancels the
operation, both commands will return the empty string.
EXAMPLE
button .b -bg [tk_chooseColor -initialcolor gray -title "Choose color"]
KEYWORDS
color selection dialog
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTk |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tk is available on http://opensolaris.org.
Tk 4.2 tk_chooseColor(1T)
Check Out this Related Man Page
chooseColor(3) User Contributed Perl Documentation chooseColor(3)NAME
chooseColor - pops up a dialog box for the user to select a color.
SYNOPSIS
$color = $widget->chooseColor?(-option=>value, ...)?;
DESCRIPTION
The method chooseColor is implemented as a perl wrapper on the core tk "command" tk_chooseColor, and $widget is passed as the argument to
the hidden -parent option. The implementation of internal tk_chooseColor is platform specific, on Win32 it is a native dialog, and on
UNIX/X11 it is implemented in terms of Tk::ColorEditor.
The chooseColor method pops up a dialog box for the user to select a color. The following option-value pairs are possible as command line
arguments:
-initialcolor=>color
Specifies the color to display in the color dialog when it pops up. color must be in a form acceptable to the Tk_GetColor function.
-parent=>$widget
Makes $widget the logical parent of the color dialog. The color dialog is displayed on top of its parent window.
-title=>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, tk_chooseColor will return the name of the color in a form acceptable to Tk_GetColor. If the user cancels the
operation, the command will return undef.
EXAMPLE
$widget->configure(-fg => $parent->chooseColor(-initialcolor => 'gray',
-title => "Choose color"));
KEYWORDS
color selection dialog
perl v5.12.1 2007-05-05 chooseColor(3)
I'm trying to be able to get color with my SSH sessions (I'm using PuTTY) when using Emacs... but I've been unable to.
Someone told me to change the Terminal-type string to "xterm-color" and I've tried that... but I still can't get any color.
Any and all help will be appreciated. (4 Replies)
Is it possible to change the title of a Terminal window on Solaris? For example, for a MS Windows command window, one can simply type "title NameofWindow" to change the title for a command window.
I was looking for similar functionality for terminal windows.
Thanks. (8 Replies)
I have implemented the solution from mschwage located in post https://www.unix.com/unix-advanced-expert-users/35784-change-putty-title-window.html; ie
wt ()
{
echo -n "^2;${@}^G"
}
This method is awesome!!!!
The reason I am sending you this message is to get your assistance with... (3 Replies)
I need to send out messages to over 100 clients in my sector. I want it to pop up a dialog box letting them know to save work and log out. I have the reboot script created just need the warning please. Thanks (35 Replies)
Hello
I reinstalled my OS today and after going through the registration the updatemanager pops up, as expected. The problem is all i get is an error message box that's completely blank.
The icon in the sytem tray is a blue question mark and when hovering over it, it says i'm not... (4 Replies)
hi all,
i am using a Ubuntu work station. i have following piece of code that works ok. But i cant figure out a way to insert a string call $Name into the title of the window i am opening. As you can see, i tried two different ways without a success. Can someone please help me out here? :(
... (3 Replies)
I wrote a script to give a user 5 guesses on what is my favorite color but I it doesn't work. I've only been scripting for a couple weeks and need some help it seems simple but how do I give the user 5 guesses? (3 Replies)
I know, I can run dialog command in my machine. But what I want to do is I wanna show the dialog box to some other Remote host.
I connected to the remote system and used dialog command its shows the box in my terminal only. How can I display to that remote machine?? Any suggestions??? (3 Replies)
I'm trying to make a dialog window that prints the output of grep that takes the output of find. Unfortunately my nested backticks don't work.
Here is the dialog window:
dialog --stdout --title "test" --backtitle "test" --msgbox "Test:\n `grep -l "${tablica}" `find $string``" 16 60I think I... (2 Replies)
Hello.
Any help would be greatly appreciated.
Right now I have the following input box that works fine and well, however I would like to wrap this is a loop that requires input. Right now the script will happily continue on if the user just hits enter. I'd like to require a minimum of a 5... (5 Replies)