Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar Images Question
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00728028
Message ID:
00728122
Views:
12
Hi!

Take a look to the MSDN manula and VFP samples. There are "BMP" files used and "MSK" files withthe same file name. While BMP contains real image, MSK file determines what parts of image are trasparent. This way you can completely get rid of parts you require to be the same color as toolbar. This is special useful, becasuse, event *if* you get desired result with playing around colors, changing appearance settings in Control Panel->Display might change color of toolbar and thus your buttons' background would be visible again. Just use MSK files to hide parts that require to be transparent.

>I'm creating a Standard toolbar. I have the usuall buttons;
>New, Open, Save, Cut, Copy, Paste....
>
>I'v created bitmaps for them, but no matter what type
>I create (16, 24 or 256 color), they never quite come
>out right.
>
>With a 16 color bitmap, it looks fine when disabled, but
>when enabled, the grey area of the image is darker than
>the toolbar, so it looks strange.
>
>With a 24 color bitmap, when the button is enabled, the
>image looks fine, but when disabled, I see is a dark
>22x22 square around the image
>
>256 color bitmaps are no better. The disabled image is
>a 22x22 dark grey square.
>
>Click here to see picture of what the toolbar looks like with all
>3 types of images using masks.
>
>Anyone know what I'm doing wrong?
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform