Page 1 of 1
GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 4:21 am
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
Re: GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 4:28 am
by mestnyi
+1
Re: GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 9:02 am
by RSBasic
+1
Re: GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 9:14 am
by Dude
+1
Re: GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 2:12 pm
by davido
+1
Re: GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 4:23 pm
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!
Re: GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 9:29 pm
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
c ya,
nco2k
Re: GetWindowColor on none-set window colour
Posted: Fri Mar 09, 2018 10:51 pm
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
Re: GetWindowColor on none-set window colour
Posted: Sun Mar 11, 2018 11:05 am
by es_91
I totally agree with kenmo's add.
+1