Problem with images???

A

al

Greetings,

I have this problem with any image, in any format, I include in
ToolBar Control. Those images are in-house developed. The problem is
when I include an image in a ToolBar and have its Enabled property set
to False, at runtime, the image just disappears, leaving a square
grayed area with nothing inside it. ( while it is supposed to show the
image in gray color)??


MTIA,
Grawsh
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (al) scripsit:
I have this problem with any image, in any format, I include in
ToolBar Control. Those images are in-house developed. The problem is
when I include an image in a ToolBar and have its Enabled property set
to False, at runtime, the image just disappears, leaving a square
grayed area with nothing inside it. ( while it is supposed to show the
image in gray color)??

That's a known "limitation".

<msdn>
If the image or text has multiple colors, they display in a monochromatic gray.
</msdn>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
 
A

Andreas

Does this also happends if you have a chess-board like
image? All colors that are light will turn into grey, and
all dark color will be darker gray. Maybe your image
doe'snt contain any color that is dark enougth?

/Andreas
 
A

al

Andreas said:
Does this also happends if you have a chess-board like
image? All colors that are light will turn into grey, and
all dark color will be darker gray. Maybe your image
doe'snt contain any color that is dark enougth?

/Andreas


The strange thing is this type of behavior dosen't occure when I
import system-images (images the come with Win2k) into the toolbar.
Could I have done someting wroing when I first draw the images (they
are your basic MoveFirst and MoveLast images that I could not find in
Win2k)??

Grawsha
 

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