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: 298
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
:mrgreen:
mestnyi
Addict
Addict
Posts: 1098
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: 1228
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: 2033
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: 1305
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.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
es_91
Enthusiast
Enthusiast
Posts: 298
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
:mrgreen:
Post Reply