- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have just managed to display a bitmap on a button.
I could also have used icons.
Is there any difference between using icons or bitmaps?
Thanks,
David
I could also have used icons.
Is there any difference between using icons or bitmaps?
Thanks,
David
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not essential -- icons can be transparent but they're limited to 16x16 or 32x32 pixels. You can simulate transparency with bitmaps if you specify LR_LOADMAP3DCOLORS flag in LoadImage and use gray, light gray and dark gray for "transparent" areas.
Btw, my recommendation is to use an unusual combination of system colors when developing, to ensure that users with "weird" system color settings will have correct display.
Jugoslav
Btw, my recommendation is to use an unusual combination of system colors when developing, to ensure that users with "weird" system color settings will have correct display.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
I hadn't known about LR_LOADMAP3DCOLORS so I have changed all my bitmaps to icons so they would be transparent!
I see LR_LOADTRANSPARENT would also do the job
David
I hadn't known about LR_LOADMAP3DCOLORS so I have changed all my bitmaps to icons so they would be transparent!
I see LR_LOADTRANSPARENT would also do the job
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Btw, David, since you've already done it with icons -- how does the BS_ICON butoon look like when disabled? With bitmaps and LR_LOADMAP3DCOLORS it's pretty ugly -- only original white is mapped into light color, and the rest of the image looks like a dark square.
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav,
Icons work very well. I first tried bitmaps, but as you say they don't look very good when disabled - you get a dark square.
With Icons you get what you expect, the 'picture' is in different shades of grey.
David
Icons work very well. I first tried bitmaps, but as you say they don't look very good when disabled - you get a dark square.
With Icons you get what you expect, the 'picture' is in different shades of grey.
David

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page