I want all the windows in my application - which is already running and
using different back ground colors - to have a specific color say blue -
irrespective of the colors the windows are defined with - ? Is it possible
either ?

I am looking for a solution like a hook which keeps on looking whenever a
user defined window becomes visible OR no matter is defined its back ground
color changes to that specific color.

Re: Change colors of the Window Globaly ? by tom

tom
Wed Aug 17 09:19:02 CDT 2005

Hi,

If I understand you correctly you should just set the background color AND
the colorsource property for screen and forms.
I do not think that its a good idea, users are used to setup there
colorschemes, what about people who cannot differ red/green (sorry, do not
know the english word)

HTH
Tom



"Tanveer H. Malik" <tanmalik@hotmail.com> schrieb im Newsbeitrag
news:uBbSaFuoFHA.2956@TK2MSFTNGP10.phx.gbl...
> I want all the windows in my application - which is already running and
> using different back ground colors - to have a specific color say blue -
> irrespective of the colors the windows are defined with - ? Is it possible
> either ?
>
> I am looking for a solution like a hook which keeps on looking whenever a
> user defined window becomes visible OR no matter is defined its back
ground
> color changes to that specific color.
>
>



Re: Change colors of the Window Globaly ? by Dan

Dan
Wed Aug 17 11:07:10 CDT 2005

As Tom said, it's a bad idea to muck with Windows colors because a large
percentage of the population is color-blind to some degree.

Right click on your windows desktop, choose properties, and see the
appearance tab. That's where users set up the colors and font sizes that
THEY are comfortable with. If you want to change all the forms in your app,
change it there. BUT if you've overridden the default colors, they won't
properly play along with this scheme.

Dan

Tanveer H. Malik wrote:
> I want all the windows in my application - which is already running
> and using different back ground colors - to have a specific color say
> blue - irrespective of the colors the windows are defined with - ? Is
> it possible either ?
>
> I am looking for a solution like a hook which keeps on looking
> whenever a user defined window becomes visible OR no matter is
> defined its back ground color changes to that specific color.



Re: Change colors of the Window Globaly ? by Tanveer

Tanveer
Wed Aug 17 23:00:59 CDT 2005

Thanks for the replies to tom and dan. Actually the color of the Forms is
not the problem.
From window I mean the windows defined by DEFINE WINDOW statment. In the
application there are many which are defined with different colors I want
all of them to follow a standard color scheme as mentioned by you guy's ?

"Tanveer H. Malik" <tanmalik@hotmail.com> wrote in message
news:uBbSaFuoFHA.2956@TK2MSFTNGP10.phx.gbl...
>I want all the windows in my application - which is already running and
>using different back ground colors - to have a specific color say blue -
>irrespective of the colors the windows are defined with - ? Is it possible
>either ?
>
> I am looking for a solution like a hook which keeps on looking whenever a
> user defined window becomes visible OR no matter is defined its back
> ground color changes to that specific color.
>



Re: Change colors of the Window Globaly ? by Andrew

Andrew
Thu Aug 18 04:07:03 CDT 2005

"tom knauf" <hbgmail@pdtgmbh.de> wrote in message
news:ddvh0n$uaf$02$1@news.t-online.com...
> what about people who cannot differ red/green (sorry, do not
> know the english word)

If you're interested, it is "colour blind."
My German is almost non existant but I often need to check things. The best
technical translation source I know is the excellent http://dict.leo.org/

--
Gruß
Andrew Howell



Re: Change colors of the Window Globaly ? by Dan

Dan
Thu Aug 18 11:29:26 CDT 2005

That's one of the shortcomings of DEFINE WINDOW, and it's why it generally
isn't used any more. If you want to change the color of windows, you have to
modify each DEFINE WINDOW command.

Dan

Tanveer H. Malik wrote:
> Thanks for the replies to tom and dan. Actually the color of the
> Forms is not the problem.
> From window I mean the windows defined by DEFINE WINDOW statment. In
> the application there are many which are defined with different
> colors I want all of them to follow a standard color scheme as
> mentioned by you guy's ?
>
> "Tanveer H. Malik" <tanmalik@hotmail.com> wrote in message
> news:uBbSaFuoFHA.2956@TK2MSFTNGP10.phx.gbl...
>> I want all the windows in my application - which is already running
>> and using different back ground colors - to have a specific color
>> say blue - irrespective of the colors the windows are defined with -
>> ? Is it possible either ?
>>
>> I am looking for a solution like a hook which keeps on looking
>> whenever a user defined window becomes visible OR no matter is
>> defined its back ground color changes to that specific color.



Re: Change colors of the Window Globaly ? by Andrew

Andrew
Fri Aug 19 02:26:19 CDT 2005

"Dan Freeman" <spam@microsoft.com> wrote in message
news:%23LYWBIBpFHA.3084@TK2MSFTNGP09.phx.gbl...
> That's one of the shortcomings of DEFINE WINDOW, and it's why it generally
> isn't used any more. If you want to change the color of windows, you have
> to
> modify each DEFINE WINDOW command.

You can use MODIFY WINDOW.

--
HTH
Andrew Howell



Re: Change colors of the Window Globaly ? by Bernhard

Bernhard
Fri Aug 19 04:37:05 CDT 2005

Hi Tanveer

> I am looking for a solution like a hook which keeps on looking whenever a
> user defined window becomes visible OR no matter is defined its back ground
> color changes to that specific color.

I did not test this, so just try it.

* Create a class maybe like this:
define class ColorChanger AS custom
procedure ChangeColor
* whatever you need, maybe:
if not inlist(_screen.ActiveForm.Backcolor, [List of allowed colors])
_screen.ActiveForm.Backcolor = your_color
* or even:
MODIFY WINDOW (_screen.ActiveForm.Name) COLOR SCHEME ...
endif
endproc
enddefine

* Create an object:
public goColorChanger
goColorChanger = newobject("ColorChanger")

* then bind to _screen.activeform:
bindevent(_screen, "ActiveForm", goColorChanger, "ChangeColor", 1)

Regards
Bernhard Sander

Re: Change colors of the Window Globaly ? by Tanveer

Tanveer
Fri Aug 19 08:52:53 CDT 2005

Though even I have not tested it yet but,
this is the sort of solution I was looking for .. Thanx all

"Bernhard Sander" <fuchs@individsoft.de> wrote in message
news:O$QKQGKpFHA.320@TK2MSFTNGP09.phx.gbl...
> Hi Tanveer
>
>> I am looking for a solution like a hook which keeps on looking whenever a
>> user defined window becomes visible OR no matter is defined its back
>> ground color changes to that specific color.
>
> I did not test this, so just try it.
>
> * Create a class maybe like this:
> define class ColorChanger AS custom
> procedure ChangeColor
> * whatever you need, maybe:
> if not inlist(_screen.ActiveForm.Backcolor, [List of allowed colors])
> _screen.ActiveForm.Backcolor = your_color
> * or even:
> MODIFY WINDOW (_screen.ActiveForm.Name) COLOR SCHEME ...
> endif
> endproc
> enddefine
>
> * Create an object:
> public goColorChanger
> goColorChanger = newobject("ColorChanger")
>
> * then bind to _screen.activeform:
> bindevent(_screen, "ActiveForm", goColorChanger, "ChangeColor", 1)
>
> Regards
> Bernhard Sander