Tk Source Code

View Ticket
Login
Ticket UUID: 220913
Title: wm resizable . 0 0 removes custom 'winico icon'
Type: Bug Version: obsolete: 8.3.1
Submitter: welch Created on: 2000-11-01 01:31:07
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-04-06 03:41:22
Resolution: Fixed Closed By: hobbs
    Closed on: 2001-04-05 20:41:22
Description:
OriginalBugID: 5324 Bug
Version: 8.3.1
SubmitDate: '2000-05-02'
LastModified: 
Severity: LOW
Status: UnAssn
Submitter: techsupp
OS: Windows NT
OSVersion: 4.0sp5


Name:
Vince Darley

Extensions:
Winico 0.3

ReproducibleScript:
# type this into a wish shell
package require Winico
# you need a .ico file
set icon [winico create myIcon.ico]
winico setwindow . $icon
# Now the window has a nice icon
wm resizable . 0 0
# Not any more!

ObservedBehavior:
The standard Tk icon replaces 'myIcon'.

Note that there are other related 'icon replacement' problems.  For example, the following script, when double-clicked on, fails to set the window's icon:

package require Winico
set icon [winico create myIcon.ico]
winico setwindow . $icon

Or for a similar effect, type this into a shell:

toplevel .t ; winico setwindow .t $icon

DesiredBehavior:
I expect setting a toplevel's icon to be a permanent change, and not for Tk to reset the icon when it sees fit...

I don't think these bug existed in, e.g., Tk 8.1 but I'm not sure.
User Comments: hobbs added on 2001-04-06 03:41:22:
Logged In: YES 
user_id=72656

The patch from Darley for 8.3.3/8.4a2 that adds .ico 
support in wm iconbitmap (finally!) fixed this.