From: SourceForge.net <no...@so...> - 2006-03-09 22:12:53
|
Bugs item #1329198, was opened at 2005-10-18 07:10 Message generated for change (Comment added) made by sebbarre You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1329198&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 13. Win Menus Group: obsolete: 8.4.11 Status: Open Resolution: None Priority: 7 Submitted By: Sébastien BARRE (sebbarre) Assigned to: Jeffrey Hobbs (hobbs) Summary: Menu and Image Problems Initial Comment: Summary: Images are only partially displayed in menus. Details: Check the following screenshot: http://barre.nom.fr/temp/popupmenupb.png The first picture on the left shows a popup-menu as it is posted. The second picture was captured after I actually moved the mouse over the first entry. Noticed how the icon has been refreshed and is now displayed correctly. In the last image, I have actually moved the mouse over the first 4 items. The last two icons are still displayed incorrectly. It seems the part of the icons that is displayed matches the vertical size of a text character in the menu. Each time the menu is posted, only parts of the icons are displayed. Reproducibility: This bug can be reproduced with transparent and non-transparent images (as opposed to bitmaps), with or without the "-compound" option and with any type of menu entries. It was tested on 8.4.11 and 8.5a3. Donal K. Fellows suggested me that this bug might have been submitted and fixed in the past already, but never backported to 8.4 or 8.5. I browsed the bug database and found the following suspect (607649): http://sourceforge.net/tracker/? group_id=12997&atid=112997&func=detail&aid=6 07649 Jeffrey Hobbs took a stab at it, but apparently the bug was never really closed. Here is the commit: http://cvs.sourceforge.net/viewcvs.py/tktoolkit/tk/ generic/tkMenu.c?r1=1.20.2.2&r2=1.20.2.3 Anyhow, this simple script will do the trick: set floppy [image create photo -file floppy.gif] set folder [image create photo -file folder.gif] menu .foo .foo add radiobutton -label "foo" -image $floppy -compound left .foo add radiobutton -label "bar" -image $folder -compound left bind . <Button-1> {tk_popup .foo %X %Y} I've attached this script and the two GIF images (any GIF images would do anyway), but they can also be downloaded from here: http://barre.nom.fr/temp/test.zip If you guys could have a look at it, that would be great (and if it could make its way to 8.4.12, that would make my day too :) Thanks ---------------------------------------------------------------------- >Comment By: Sébastien BARRE (sebbarre) Date: 2006-03-09 23:12 Message: Logged In: YES user_id=214100 Hi. Was wondering if there was any news on this item. This is definitely still in Tk, and I was asked again today by my fellow co-developpers: " why can't I have a nice image in this menu", and I started to cry. Wait no, I did not cry, but I had to point at Tk. This is nice feature though, can you guys fix it and bring it back ? Thanks a lot. ---------------------------------------------------------------------- Comment By: Sébastien BARRE (sebbarre) Date: 2005-12-16 16:45 Message: Logged In: YES user_id=214100 Can definitely reproduce that in 8.4.12 too (was reported for 8.4.11). Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1329198&group_id=12997 |