Kevin Walzer wrote:
> Wow! You've done fantastic work. Pinstripes on windows without Tile! > Tearoff menus work! Images in menus! I did a bit of stress-testing on > the 8.4.15 build with SnackAmp, which is a complex app from a UI > standpoint (and which was previously broken under Aqua). It works quite > well.
I need to amend one point:
Images don't work in the main menubar.
The following code in 8.4.15 produces a menu entry with a label of
"(Image)":
image create photo myImage -data {
R0lGODlhEAAQAIAAAPwCBAQCBCH5BAEAAAAALAAAAAAQABAAAAIYhI+py+0P
UZi0zmTtypflV0VdRJbm6fgFACH+aENyZWF0ZWQgYnkgQk1QVG9HSUYgUHJv
IHZlcnNpb24gMi41DQqpIERldmVsQ29yIDE5OTcsMTk5OC4gQWxsIHJpZ2h0
cyByZXNlcnZlZC4NCmh0dHA6Ly93d3cuZGV2ZWxjb3IuY29tADs=
}
menu .menubar
menu .menubar.fileMenu
.menubar add command -image myImage
.menubar add cascade -label File -menu .menubar.fileMenu
.menubar.fileMenu add command -image myImage
. configure -menu .menubar
This is a long-standing bug, but I mistakenly thought it was fixed in
8.4.15.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcl-mac mailing list
tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac