Standard and other toolbar icons/bitmaps

R

Richard Lee

I'm being dead thick, but I can't get my head around
this:

Where can I get standard toolbar icons like Open, Save,
Print etc from? Should I embed them in my app or can I
assume that any system will have them? How does each
version of WIndows differ - do I need to know what
version the user is running and pick icons accordingly?

I've pulled a bunch of other icons from dlls, and want to
use some. However they have white backgrounds both in the
Image Editor and when displayed. The host ImageList
TransparentColor property doesn't make a difference.
Changing the bitmap background from Opaque to Transparent
doesn't make a difference.

There's nothing in any of the .NET books I have, and I
can't find anything online. What am I missing?
 
H

Herfried K. Wagner [MVP]

* "Richard Lee said:
Where can I get standard toolbar icons like Open, Save,
Print etc from? Should I embed them in my app or can I
assume that any system will have them? How does each
version of WIndows differ - do I need to know what
version the user is running and pick icons accordingly?

You will have to design the bitmaps yourself, Windows doesn't provide
these bitmaps. In the VS.NET installation folder you will somewhere
find a folder "GRAPHICS" (if you checked the option in VS.NET Setup)
which contains some bitmaps ready for use with your application.
I've pulled a bunch of other icons from dlls, and want to
use some. However they have white backgrounds both in the
Image Editor and when displayed. The host ImageList
TransparentColor property doesn't make a difference.
Changing the bitmap background from Opaque to Transparent
doesn't make a difference.

Don't use icons, use bitmaps.
 
R

Richard Lee

Many thanks Herfried.

Some surprise that, given MS push to get ISVs and
Partners on the 'designed for XP' etc bandwagons, they
don't provide a bunch of standard bitmaps...

Regards
Richard
 
R

Ricahrd Lee

Hmm... I still am unable to sort this out - it should be
simple, so it's probably me.

Is ther a simple treatment of the use of bitmaps:
transparancy etc. in controls?

What I have now is e.g. the COPY.BMP from the GRAPHICS
folder, used in an ImageList as a toolbar button bitmap.
ImageList TransparentColor set to Transparent. The grey
border of the bitmap is shown, and isn't transparent...
When the button is Enabled.false then I get a 'blackish'
bitmap, and not the nice disabled version you see in e.g.
VS .NET. However the graphics fodler has only the one
version. What is going on?

Thanks
Richard
 
H

Herfried K. Wagner [MVP]

* "Ricahrd Lee said:
What I have now is e.g. the COPY.BMP from the GRAPHICS
folder, used in an ImageList as a toolbar button bitmap.
ImageList TransparentColor set to Transparent. The grey
border of the bitmap is shown, and isn't transparent...

You will have to set the 'TransparentColor' property to the color of the
grey border.
 

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