Re: Some issues on Tk
- From: "MartinLemburg@UGS" <martin.lemburg.ugs@xxxxxxx>
- Date: 18 Nov 2005 00:31:21 -0800
Hi Shawn,
about 1):
I use the "wm iconbitmap" command to change the icon of the main
window. Here an extract of the wm man page:
wm iconbitmap window ?bitmap?
If bitmap is specified, then it names a bitmap in the standard
forms accepted by Tk (see the Tk_GetBitmap manual entry for details).
This bitmap is passed to the window manager to be displayed in window's
icon, and the command returns an empty string. If an empty string is
specified for bitmap, then any current icon bitmap is cancelled for
window. If bitmap is specified then the command returns an empty
string. Otherwise it returns the name of the current icon bitmap
associated with window, or an empty string if window has no icon
bitmap. On the Windows operating system, an additional flag is
supported: wm iconbitmap window ?-default? ?image?. If the -default
flag is given, the icon is applied to all toplevel windows (existing
and future) to which no other specific icon has yet been applied. In
addition to bitmap image types, a full path specification to any file
which contains a valid Windows icon is also accepted (usually .ico or
..icr files), or any file for which the shell has assigned an icon. Tcl
will first test if the file contains an icon, then if it has an
assigned icon, and finally, if that fails, test for a bitmap.
Best regards,
Martin Lemburg
UGS - Transforming the Process of Innovation
.
- References:
- Some issues on Tk
- From: shawn . spirent
- Some issues on Tk
- Prev by Date: Hiding columns in TkTable
- Next by Date: thread or threads ?
- Previous by thread: Re: Some issues on Tk
- Next by thread: file saving dialog box
- Index(es):
Relevant Pages
|