Colour menu backgrounds?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Colour menu backgrounds?

Post 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)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Freak already answered me in IRC that what I want requires ownerdrawing. Post was amended accordingly.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post 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)
klaver
Enthusiast
Enthusiast
Posts: 147
Joined: Wed Jun 28, 2006 6:55 pm
Location: Schröttersburg

Post 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.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post 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.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Post Reply