Page 1 of 1

Colour menu backgrounds?

Posted: Sat May 24, 2008 3:06 pm
by Fangbeast
Just a minor wish if possible. colour the gradient bar to whatever colour you want and set the gradient bar width a little thicker.

Thanks for 4.2, it is a nice release (My largest application works fine now that I have stripped references to a non-updated library)

Posted: Sat May 24, 2008 3:08 pm
by Trond
The gradient already takes its colours from the system settings. So it technically should be what each user wants, instead of what the application developer wants.

Posted: Sat May 24, 2008 3:11 pm
by Fangbeast
Freak already answered me in IRC that what I want requires ownerdrawing. Post was amended accordingly.

Posted: Sat May 24, 2008 4:00 pm
by Trond
*ImageMenus() are already owner-drawn. It's just a matter of how the PB library owner-draws them. Alternatively, you can owner-draw them yourself to get get them exactly how you want them.

Posted: Sat Dec 13, 2008 9:20 am
by Rescator
Kind of a shame as this is fully possible using native menu stuff on Windows, avoiding ownerdrawn (and thus ruining disability, screen reader, accessibility, font etc stuff).

http://channel9.msdn.com/pdc2008/PC43/
jump to 37:20 for Raymon Chen's presentation on this.
Vista even adds alpha blended menu bitmaps. (the actual feature has been around since Win2K, will maybe not work on Win 98 and Me but should do no harm, Win95 no support)

Posted: Mon Apr 13, 2009 2:56 am
by klaver
MS Platform SDK wrote:The selected and clear bitmaps should be monochrome. The system uses the Boolean AND operator to combine bitmaps with the menu so that the white part becomes transparent and the black part becomes the menu-item color. If you use color bitmaps, the results may be undesirable.
Rescator wrote:Kind of a shame as this is fully possible using native menu stuff on Windows, avoiding ownerdrawn (and thus ruining disability, screen reader, accessibility, font etc stuff).
You're joking, right? If not, then you have a funny definition of "fully" (no alpha, messed up colors etc).
You should read this thread. SetMenuItemBitmaps_() is for custom check marks, not icons. If you want your menus looking like crap, then go on.

However you're right it looks better on Vista, but if you write your programs only with Vista users in mind - you should be ashamed.

And if you don't want to use ImageMenus, DON'T USE THEM. Nobody forces you to.

Posted: Mon Apr 13, 2009 7:25 am
by Fangbeast
This is an old, out of date thread and perhaps klaver missed the forum heading which was "Feature Requests and Wishlists" where people are ALLOWED to request what they want without being attacked and generally others are allowed to express an opinion on the request without attacking the OP.

Rescator was only offering an opinion and not spamming MY thread nor attacking me, please settle down.

Would a moderator please lock this thread? It has long past expired its' use by date and usefullness.

Posted: Mon Apr 13, 2009 2:14 pm
by Fluid Byte
It's just a pain in the ass when people rape old threads and respond like the last reply was just a few hours ago ... :x