GetWindowColor on none-set window colour

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
es_91
Enthusiast
Enthusiast
Posts: 242
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

GetWindowColor on none-set window colour

Post by es_91 »

Hi

When the window color was never program-set by SetWindowColor (*window, color), the GetWindowColor (*window) function will always return -1.

I think it would be usefull here to return the true window's background colour for further work with.

crossOS
mestnyi
Addict
Addict
Posts: 999
Joined: Mon Nov 25, 2013 6:41 am

Re: GetWindowColor on none-set window colour

Post by mestnyi »

+1
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: GetWindowColor on none-set window colour

Post by RSBasic »

+1
Image
Image
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: GetWindowColor on none-set window colour

Post by Dude »

+1
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: GetWindowColor on none-set window colour

Post by davido »

+1
DE AA EB
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: GetWindowColor on none-set window colour

Post by kenmo »

Disagree, value -1 can be useful to know the color isn't set.

I would prefer if GetWindowColor(#PB_Default) told you the default color... like GetGadgetFont(#PB_Default) on Windows which is very useful!
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: GetWindowColor on none-set window colour

Post by nco2k »

kenmo wrote:I would prefer if GetWindowColor(#PB_Default) told you the default color... like GetGadgetFont(#PB_Default) on Windows which is very useful!
+1 :D

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
Bisonte
Addict
Addict
Posts: 1232
Joined: Tue Oct 09, 2007 2:15 am

Re: GetWindowColor on none-set window colour

Post by Bisonte »

kenmo wrote:I would prefer if GetWindowColor(#PB_Default) told you the default color... like GetGadgetFont(#PB_Default) on Windows which is very useful!
IMHO the better choice, so +1
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
es_91
Enthusiast
Enthusiast
Posts: 242
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: GetWindowColor on none-set window colour

Post by es_91 »

I totally agree with kenmo's add.

+1
Post Reply