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
GetWindowColor on none-set window colour
Re: GetWindowColor on none-set window colour
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!
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
+1kenmo wrote:I would prefer if GetWindowColor(#PB_Default) told you the default color... like GetGadgetFont(#PB_Default) on Windows which is very useful!
c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Re: GetWindowColor on none-set window colour
IMHO the better choice, so +1kenmo wrote: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
I totally agree with kenmo's add.
+1
+1