Info at:
Excerp:
8) Using the WINICO features under Windows
Unfortunately the winico createfrom command cannot directly load an icon that is contained within a wrapped application. The icon file must first be written back to disk before it is loaded. The following example code demonstrates how this can be done.
# Ensure root window (.) is visible before running following code
set icofile /myproject/smiley.ico
if {[file exists $icofile]} {
set tmpfile c:/windows/temp/$icofile
set fin [open $icofile r]
fconfigure $fin -translation binary
set fout [open $tmpfile w]
fconfigure $fout -translation binary
puts -nonewline $fout [read $fin]
close $fin
close $fout
set ico [winico create $tmpfile]
winico setwindow . $ico
puts "you should see a yellow smiley in ."
}
You can read some excerpted Winico documentation for more information.
ulis