From: Mona on
Hi,

I am using tkpng package to implement/display png images in my
project. I have a tk menu which has png images in the menu items. The
display of these menus using tk_popup is VERY SLOW on Windows7. It
comes up just fine with no slowness in all the other cases- using gif
instead of png in tk menu, or on tk widgets other than tk menu and on
all the other platforms(Windows XP, Vista etc). I tried to use
tkimg::png package instead of tkpng and the results are the same, with
slowness on Windows7 displaying tk menus.

Does anyone know what could be the problem and if there is a fix for
this?

Thanks,
Ira.
From: Jeff Godfrey on
On 5/3/2010 10:12 AM, Mona wrote:
> Hi,
>
> I am using tkpng package to implement/display png images in my
> project. I have a tk menu which has png images in the menu items. The
> display of these menus using tk_popup is VERY SLOW on Windows7. It
> comes up just fine with no slowness in all the other cases- using gif
> instead of png in tk menu, or on tk widgets other than tk menu and on
> all the other platforms(Windows XP, Vista etc). I tried to use
> tkimg::png package instead of tkpng and the results are the same, with
> slowness on Windows7 displaying tk menus.
>
> Does anyone know what could be the problem and if there is a fix for
> this?

Hi,

I haven't experienced this with Win 7. I have several apps that use
tkpng and small png images for icons - including menu images. I can't
say that I've really noticed any slow-down since moving the apps to Win 7.

A few questions in an attempt to isolate the issue...

- Win 7 32-bit or 64-bit?
- What version of Tcl/Tk
- What version of tkpng?
- How large are your png images?
- How much slower are they under Win 7 (2x, 10x, 100x)?

And this is specific only to the menu item? Can you provide a code
snippet that exhibits the problem?

Jeff