Performance with icons in menus and toolbars

V

Vim Fuego

Hi,

Does anyone know why the performance of loading icons into Visio toolbars,
application menus and context menus would be so slow (e.g., 1-2 seconds per
icon being loaded into the menuitem).

Syntax being used is simply: MenuItem.IconFileName (filePathName)

If using FaceId, or no icons, the speed to load a menuitem is instantaneous.

The icons in question are basic 16 x 16 ico files.

Many thanks!
 
P

Paul Herber

Hi,

Does anyone know why the performance of loading icons into Visio toolbars,
application menus and context menus would be so slow (e.g., 1-2 seconds per
icon being loaded into the menuitem).

Syntax being used is simply: MenuItem.IconFileName (filePathName)

If using FaceId, or no icons, the speed to load a menuitem is instantaneous.

The icons in question are basic 16 x 16 ico files.

Is it a full or relative path?
Is the icon on a local or network drive?
Another thought on this, is a virus checker being triggered when
loading each icon?

I've just done a test with some of my own code and there is no
noticeable slowdown when creating the menus.

How many icons are you using? Does it make any difference if you use
the same icon for each menu etc?
 
V

Vim Fuego

Hi Paul,

Many thanks for your response.

We are using a full path to the locally stored icon files so Visio is not
having to do any work there (e.g., iterating sub addons paths). Also, there
is no difference when the virus scanner is off.

There are about 20 icons in total. The same problem applies to any of the UI
objects that an icon is assigned. If the icons are the same, then there is no
noticeable difference.

We have tried and simulated this on a number of machines wih a variety of
operating systems. There is a slight improvement in speed with Visio 2007.

Do you know whether it is possible to customise Button Faces to include
custom icons?

Best regards
 
P

Paul Herber

Hi Paul,

Many thanks for your response.

We are using a full path to the locally stored icon files so Visio is not
having to do any work there (e.g., iterating sub addons paths). Also, there
is no difference when the virus scanner is off.

There are about 20 icons in total. The same problem applies to any of the UI
objects that an icon is assigned. If the icons are the same, then there is no
noticeable difference.

We have tried and simulated this on a number of machines wih a variety of
operating systems. There is a slight improvement in speed with Visio 2007.

Which language are you writing in? I tried this in one of my
applications written in Delphi, i.e. a native code vsl file, there was
no noticable difference with icons.

If you are using .net then I don't know.
 
V

Vim Fuego

turns out that the problem is Vista.....;)



Paul Herber said:
Which language are you writing in? I tried this in one of my
applications written in Delphi, i.e. a native code vsl file, there was
no noticable difference with icons.

If you are using .net then I don't know.
 
P

Paul Herber

turns out that the problem is Vista.....;)

You too, eh?
Most of my customers running my software on Visio 2007 on Vista are
quite happy, a few have problems, but each problem is different. No
two problem reports are the same.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top