- (tk/wm 'iconbitmap #<widget> ?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 #<widget>'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 #<widget>. If bitmap is specified then the command returns an empty string. Otherwise it returns the name of the current icon bitmap associated with #<widget>, or an empty string if #<widget> has no icon bitmap. On the Windows operating system, an additional flag is supported: tk/wm iconbitmap #<widget> ?#: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.
© Author
| Home
| Sitemap
|