Much against my better judgment I have to set windows XP themes and colors
in our app. We normally allow the users to set their own colors using RGB().
A client wants us to disable this and set up XP themes. The choice is Silver
as opposed to the Default Blue. My problem is some users may have Default
Blue set up on their machines. I do not want to use GetSysColor() or
SetSysColor() if I can get away with it. Though I could when the app starts
and reset when it ends. Is there another way in VFP? I can change the colors
for all except the MessageBox() (use this a lot) and the Form Title Bar. Any
idea how to do this?

OR

How do I access the Silver XP theme, is there a scheme like in the old fox
days? If I can then I will change the scheme and reset.

Also I have seen quite a few posts about disabling themes for XP as it
causes erratic behavior i.e. cursor disappearing etc.

Any and all ideas will be greatly appreciated.

Thanks


--
Mohammed
www.imaginecorp.com/what_we_do.htm

Re: Themes & Colors by Dan

Dan
Mon Jan 22 18:27:03 CST 2007

Assuming you are using VFP8 or later, support for XP themes is built-in.

The turning off of Themes applies to forms transported from FPW.

Dan

"ImagineCorp" <ashruff@imaginecorp.com> wrote in message
news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
> Much against my better judgment I have to set windows XP themes and colors
> in our app. We normally allow the users to set their own colors using
> RGB(). A client wants us to disable this and set up XP themes. The choice
> is Silver as opposed to the Default Blue. My problem is some users may
> have Default Blue set up on their machines. I do not want to use
> GetSysColor() or SetSysColor() if I can get away with it. Though I could
> when the app starts and reset when it ends. Is there another way in VFP? I
> can change the colors for all except the MessageBox() (use this a lot) and
> the Form Title Bar. Any idea how to do this?
>
> OR
>
> How do I access the Silver XP theme, is there a scheme like in the old fox
> days? If I can then I will change the scheme and reset.
>
> Also I have seen quite a few posts about disabling themes for XP as it
> causes erratic behavior i.e. cursor disappearing etc.
>
> Any and all ideas will be greatly appreciated.
>
> Thanks
>
>
> --
> Mohammed
> www.imaginecorp.com/what_we_do.htm
>
>



Re: Themes & Colors by ImagineCorp

ImagineCorp
Mon Jan 22 18:41:41 CST 2007

Hello Dan;
using VFP9 SP1. Had problems with the cursor disappearing etc. App was not
transported from FPW. Is there a Color scheme I can access in XP to change
the XP Color Scheme to Silver with Themes enabled?

--
Mohammed
www.imaginecorp.com/what_we_do.htm

"Dan Freeman" <spam@microsoft.com> wrote in message
news:Op6Z1UoPHHA.3344@TK2MSFTNGP02.phx.gbl...
> Assuming you are using VFP8 or later, support for XP themes is built-in.
>
> The turning off of Themes applies to forms transported from FPW.
>
> Dan
>
> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>> Much against my better judgment I have to set windows XP themes and
>> colors in our app. We normally allow the users to set their own colors
>> using RGB(). A client wants us to disable this and set up XP themes. The
>> choice is Silver as opposed to the Default Blue. My problem is some users
>> may have Default Blue set up on their machines. I do not want to use
>> GetSysColor() or SetSysColor() if I can get away with it. Though I could
>> when the app starts and reset when it ends. Is there another way in VFP?
>> I can change the colors for all except the MessageBox() (use this a lot)
>> and the Form Title Bar. Any idea how to do this?
>>
>> OR
>>
>> How do I access the Silver XP theme, is there a scheme like in the old
>> fox days? If I can then I will change the scheme and reset.
>>
>> Also I have seen quite a few posts about disabling themes for XP as it
>> causes erratic behavior i.e. cursor disappearing etc.
>>
>> Any and all ideas will be greatly appreciated.
>>
>> Thanks
>>
>>
>> --
>> Mohammed
>> www.imaginecorp.com/what_we_do.htm
>>
>>
>
>



Re: Themes & Colors by Craig

Craig
Tue Jan 23 09:13:43 CST 2007

Are you in the US? Is your client aware that by forcing colors in the
application, they could violate the Citizens with Disabilities Act?

--
----
Craig Berntson
MCSD, Visual FoxPro MVP
Salt Lake City Fox User Group
"ImagineCorp" <ashruff@imaginecorp.com> wrote in message
news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
> Much against my better judgment I have to set windows XP themes and colors
> in our app. We normally allow the users to set their own colors using
> RGB(). A client wants us to disable this and set up XP themes. The choice
> is Silver as opposed to the Default Blue. My problem is some users may
> have Default Blue set up on their machines. I do not want to use
> GetSysColor() or SetSysColor() if I can get away with it. Though I could
> when the app starts and reset when it ends. Is there another way in VFP? I
> can change the colors for all except the MessageBox() (use this a lot) and
> the Form Title Bar. Any idea how to do this?
>
> OR
>
> How do I access the Silver XP theme, is there a scheme like in the old fox
> days? If I can then I will change the scheme and reset.
>
> Also I have seen quite a few posts about disabling themes for XP as it
> causes erratic behavior i.e. cursor disappearing etc.
>
> Any and all ideas will be greatly appreciated.
>
> Thanks
>
>
> --
> Mohammed
> www.imaginecorp.com/what_we_do.htm
>
>



Re: Themes & Colors by Dan

Dan
Tue Jan 23 10:43:33 CST 2007

The last version of FP where color schemes worked (or had any relevance at
all) was FP/DOS.

To get the silver XP theme, set the XP theme to the silver one. IOW, let XP
do the work.

Dan

"ImagineCorp" <ashruff@imaginecorp.com> wrote in message
news:eCJNJdoPHHA.3544@TK2MSFTNGP03.phx.gbl...
> Hello Dan;
> using VFP9 SP1. Had problems with the cursor disappearing etc. App was not
> transported from FPW. Is there a Color scheme I can access in XP to change
> the XP Color Scheme to Silver with Themes enabled?
>
> --
> Mohammed
> www.imaginecorp.com/what_we_do.htm
>
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:Op6Z1UoPHHA.3344@TK2MSFTNGP02.phx.gbl...
>> Assuming you are using VFP8 or later, support for XP themes is built-in.
>>
>> The turning off of Themes applies to forms transported from FPW.
>>
>> Dan
>>
>> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>>> Much against my better judgment I have to set windows XP themes and
>>> colors in our app. We normally allow the users to set their own colors
>>> using RGB(). A client wants us to disable this and set up XP themes. The
>>> choice is Silver as opposed to the Default Blue. My problem is some
>>> users may have Default Blue set up on their machines. I do not want to
>>> use GetSysColor() or SetSysColor() if I can get away with it. Though I
>>> could when the app starts and reset when it ends. Is there another way
>>> in VFP? I can change the colors for all except the MessageBox() (use
>>> this a lot) and the Form Title Bar. Any idea how to do this?
>>>
>>> OR
>>>
>>> How do I access the Silver XP theme, is there a scheme like in the old
>>> fox days? If I can then I will change the scheme and reset.
>>>
>>> Also I have seen quite a few posts about disabling themes for XP as it
>>> causes erratic behavior i.e. cursor disappearing etc.
>>>
>>> Any and all ideas will be greatly appreciated.
>>>
>>> Thanks
>>>
>>>
>>> --
>>> Mohammed
>>> www.imaginecorp.com/what_we_do.htm
>>>
>>>
>>
>>
>
>



Re: Themes & Colors by Fred

Fred
Wed Jan 24 06:47:59 CST 2007

Since any application that took it upon itself to mess with the color
schemes and/or screen resolution on MY (or any computer in our offices) that
would have an impact on other applications, would soon find itself in the
circular file.

--
Fred
Microsoft Visual FoxPro MVP


"imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
news:A9C65D36-332E-4A5A-AAC2-46D008DE90C9@microsoft.com...
>> To get the silver XP theme, set the XP theme to the silver one. IOW, let
>> XP
>> do the work.
>
> If this was what I needed I would have posted my question in a NB for the
> mentally challenged...
> Thanks anyway
> Mohammed
>
>
> "Dan Freeman" wrote:
>
>> The last version of FP where color schemes worked (or had any relevance
>> at
>> all) was FP/DOS.
>>
>>
>> Dan
>>
>> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> news:eCJNJdoPHHA.3544@TK2MSFTNGP03.phx.gbl...
>> > Hello Dan;
>> > using VFP9 SP1. Had problems with the cursor disappearing etc. App was
>> > not
>> > transported from FPW. Is there a Color scheme I can access in XP to
>> > change
>> > the XP Color Scheme to Silver with Themes enabled?
>> >
>> > --
>> > Mohammed
>> > www.imaginecorp.com/what_we_do.htm
>> >
>> > "Dan Freeman" <spam@microsoft.com> wrote in message
>> > news:Op6Z1UoPHHA.3344@TK2MSFTNGP02.phx.gbl...
>> >> Assuming you are using VFP8 or later, support for XP themes is
>> >> built-in.
>> >>
>> >> The turning off of Themes applies to forms transported from FPW.
>> >>
>> >> Dan
>> >>
>> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>> >>> Much against my better judgment I have to set windows XP themes and
>> >>> colors in our app. We normally allow the users to set their own
>> >>> colors
>> >>> using RGB(). A client wants us to disable this and set up XP themes.
>> >>> The
>> >>> choice is Silver as opposed to the Default Blue. My problem is some
>> >>> users may have Default Blue set up on their machines. I do not want
>> >>> to
>> >>> use GetSysColor() or SetSysColor() if I can get away with it. Though
>> >>> I
>> >>> could when the app starts and reset when it ends. Is there another
>> >>> way
>> >>> in VFP? I can change the colors for all except the MessageBox() (use
>> >>> this a lot) and the Form Title Bar. Any idea how to do this?
>> >>>
>> >>> OR
>> >>>
>> >>> How do I access the Silver XP theme, is there a scheme like in the
>> >>> old
>> >>> fox days? If I can then I will change the scheme and reset.
>> >>>
>> >>> Also I have seen quite a few posts about disabling themes for XP as
>> >>> it
>> >>> causes erratic behavior i.e. cursor disappearing etc.
>> >>>
>> >>> Any and all ideas will be greatly appreciated.
>> >>>
>> >>> Thanks
>> >>>
>> >>>
>> >>> --
>> >>> Mohammed
>> >>> www.imaginecorp.com/what_we_do.htm
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>>
>>



Re: Themes & Colors by Stephen

Stephen
Wed Jan 24 09:56:39 CST 2007

When somebody is stuck with a problem and comes onto a NG to ask for help
from experts who clearly know their stuff, are MVP, MCP etc etc there are
two approaches if the response hasn't answered the question originally
posed:

1) Be courteous, cheerful, friendly, apologise if the original post was
misinterpreted because perhaps it was phrased badly, and rephrase the
question.

2) Be short, offensive, insert some patronising remark about 'Are you with
me so far', accuse the expert of being on a 'soapbox' and be generally rude

Which approach is likely to generate a positive response that will solve the
problem, save time, stress, unpleasantness, etc etc and persuade people to
offer help in the future.

Tough call - let me think - let me think ...

Stephen

"imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
news:8DFCA9C6-25B9-4520-A916-8E84D0CA01B8@microsoft.com...
> Did you read the whole post? Nobody is suggesting scre*ing around with the
> resolution or screen size, ONLY COLORS. User computers have XP themes
> enabled
> with VARIOUS color schemes, For the sake of uniformity Silver (color
> scheme)
> was selected by management for our app. Are you with me so far.)
> There is absolutely no problem with setting colors (NOT screen resolution,
> size etc) when the app starts then resetting it back when it ends. I fail
> to
> see how this impacts other applications IF it is programmed correctly? The
> magic word is "programmed correctly".
> After 20+ years of programming and over 60 or so applications under my
> belt,
> I am sure; I am familiar with good programming practices.
> As this app will not be used by you or your office you can get off your
> soapbox. Sometimes its better Not to respond to a post if you cannot
> suggest
> or do not know of a solution
> Mohammed
> www.imaginecorp.com
>
>
> "Fred Taylor" wrote:
>
>> Since any application that took it upon itself to mess with the color
>> schemes and/or screen resolution on MY (or any computer in our offices)
>> that
>> would have an impact on other applications, would soon find itself in the
>> circular file.
>>
>> --
>> Fred
>> Microsoft Visual FoxPro MVP
>>
>>
>> "imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
>> news:A9C65D36-332E-4A5A-AAC2-46D008DE90C9@microsoft.com...
>> >> To get the silver XP theme, set the XP theme to the silver one. IOW,
>> >> let
>> >> XP
>> >> do the work.
>> >
>> > If this was what I needed I would have posted my question in a NB for
>> > the
>> > mentally challenged...
>> > Thanks anyway
>> > Mohammed
>> >
>> >
>> > "Dan Freeman" wrote:
>> >
>> >> The last version of FP where color schemes worked (or had any
>> >> relevance
>> >> at
>> >> all) was FP/DOS.
>> >>
>> >>
>> >> Dan
>> >>
>> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> news:eCJNJdoPHHA.3544@TK2MSFTNGP03.phx.gbl...
>> >> > Hello Dan;
>> >> > using VFP9 SP1. Had problems with the cursor disappearing etc. App
>> >> > was
>> >> > not
>> >> > transported from FPW. Is there a Color scheme I can access in XP to
>> >> > change
>> >> > the XP Color Scheme to Silver with Themes enabled?
>> >> >
>> >> > --
>> >> > Mohammed
>> >> > www.imaginecorp.com/what_we_do.htm
>> >> >
>> >> > "Dan Freeman" <spam@microsoft.com> wrote in message
>> >> > news:Op6Z1UoPHHA.3344@TK2MSFTNGP02.phx.gbl...
>> >> >> Assuming you are using VFP8 or later, support for XP themes is
>> >> >> built-in.
>> >> >>
>> >> >> The turning off of Themes applies to forms transported from FPW.
>> >> >>
>> >> >> Dan
>> >> >>
>> >> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> >> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>> >> >>> Much against my better judgment I have to set windows XP themes
>> >> >>> and
>> >> >>> colors in our app. We normally allow the users to set their own
>> >> >>> colors
>> >> >>> using RGB(). A client wants us to disable this and set up XP
>> >> >>> themes.
>> >> >>> The
>> >> >>> choice is Silver as opposed to the Default Blue. My problem is
>> >> >>> some
>> >> >>> users may have Default Blue set up on their machines. I do not
>> >> >>> want
>> >> >>> to
>> >> >>> use GetSysColor() or SetSysColor() if I can get away with it.
>> >> >>> Though
>> >> >>> I
>> >> >>> could when the app starts and reset when it ends. Is there another
>> >> >>> way
>> >> >>> in VFP? I can change the colors for all except the MessageBox()
>> >> >>> (use
>> >> >>> this a lot) and the Form Title Bar. Any idea how to do this?
>> >> >>>
>> >> >>> OR
>> >> >>>
>> >> >>> How do I access the Silver XP theme, is there a scheme like in the
>> >> >>> old
>> >> >>> fox days? If I can then I will change the scheme and reset.
>> >> >>>
>> >> >>> Also I have seen quite a few posts about disabling themes for XP
>> >> >>> as
>> >> >>> it
>> >> >>> causes erratic behavior i.e. cursor disappearing etc.
>> >> >>>
>> >> >>> Any and all ideas will be greatly appreciated.
>> >> >>>
>> >> >>> Thanks
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Mohammed
>> >> >>> www.imaginecorp.com/what_we_do.htm
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>



Re: Themes & Colors by Craig

Craig
Wed Jan 24 10:04:16 CST 2007

Again, your client could end up violating the Americans with Disabilities
Act. If they really want silver, then THEY should set silver as the theme on
the PC and let Windows do the work.

--
----
Craig Berntson
MCSD, Visual FoxPro MVP
Salt Lake City Fox User Group
"imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
news:8DFCA9C6-25B9-4520-A916-8E84D0CA01B8@microsoft.com...
> Did you read the whole post? Nobody is suggesting scre*ing around with the
> resolution or screen size, ONLY COLORS. User computers have XP themes
> enabled
> with VARIOUS color schemes, For the sake of uniformity Silver (color
> scheme)
> was selected by management for our app. Are you with me so far.)
> There is absolutely no problem with setting colors (NOT screen resolution,
> size etc) when the app starts then resetting it back when it ends. I fail
> to
> see how this impacts other applications IF it is programmed correctly? The
> magic word is "programmed correctly".
> After 20+ years of programming and over 60 or so applications under my
> belt,
> I am sure; I am familiar with good programming practices.
> As this app will not be used by you or your office you can get off your
> soapbox. Sometimes its better Not to respond to a post if you cannot
> suggest
> or do not know of a solution
> Mohammed
> www.imaginecorp.com
>
>
> "Fred Taylor" wrote:
>
>> Since any application that took it upon itself to mess with the color
>> schemes and/or screen resolution on MY (or any computer in our offices)
>> that
>> would have an impact on other applications, would soon find itself in the
>> circular file.
>>
>> --
>> Fred
>> Microsoft Visual FoxPro MVP
>>
>>
>> "imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
>> news:A9C65D36-332E-4A5A-AAC2-46D008DE90C9@microsoft.com...
>> >> To get the silver XP theme, set the XP theme to the silver one. IOW,
>> >> let
>> >> XP
>> >> do the work.
>> >
>> > If this was what I needed I would have posted my question in a NB for
>> > the
>> > mentally challenged...
>> > Thanks anyway
>> > Mohammed
>> >
>> >
>> > "Dan Freeman" wrote:
>> >
>> >> The last version of FP where color schemes worked (or had any
>> >> relevance
>> >> at
>> >> all) was FP/DOS.
>> >>
>> >>
>> >> Dan
>> >>
>> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> news:eCJNJdoPHHA.3544@TK2MSFTNGP03.phx.gbl...
>> >> > Hello Dan;
>> >> > using VFP9 SP1. Had problems with the cursor disappearing etc. App
>> >> > was
>> >> > not
>> >> > transported from FPW. Is there a Color scheme I can access in XP to
>> >> > change
>> >> > the XP Color Scheme to Silver with Themes enabled?
>> >> >
>> >> > --
>> >> > Mohammed
>> >> > www.imaginecorp.com/what_we_do.htm
>> >> >
>> >> > "Dan Freeman" <spam@microsoft.com> wrote in message
>> >> > news:Op6Z1UoPHHA.3344@TK2MSFTNGP02.phx.gbl...
>> >> >> Assuming you are using VFP8 or later, support for XP themes is
>> >> >> built-in.
>> >> >>
>> >> >> The turning off of Themes applies to forms transported from FPW.
>> >> >>
>> >> >> Dan
>> >> >>
>> >> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> >> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>> >> >>> Much against my better judgment I have to set windows XP themes
>> >> >>> and
>> >> >>> colors in our app. We normally allow the users to set their own
>> >> >>> colors
>> >> >>> using RGB(). A client wants us to disable this and set up XP
>> >> >>> themes.
>> >> >>> The
>> >> >>> choice is Silver as opposed to the Default Blue. My problem is
>> >> >>> some
>> >> >>> users may have Default Blue set up on their machines. I do not
>> >> >>> want
>> >> >>> to
>> >> >>> use GetSysColor() or SetSysColor() if I can get away with it.
>> >> >>> Though
>> >> >>> I
>> >> >>> could when the app starts and reset when it ends. Is there another
>> >> >>> way
>> >> >>> in VFP? I can change the colors for all except the MessageBox()
>> >> >>> (use
>> >> >>> this a lot) and the Form Title Bar. Any idea how to do this?
>> >> >>>
>> >> >>> OR
>> >> >>>
>> >> >>> How do I access the Silver XP theme, is there a scheme like in the
>> >> >>> old
>> >> >>> fox days? If I can then I will change the scheme and reset.
>> >> >>>
>> >> >>> Also I have seen quite a few posts about disabling themes for XP
>> >> >>> as
>> >> >>> it
>> >> >>> causes erratic behavior i.e. cursor disappearing etc.
>> >> >>>
>> >> >>> Any and all ideas will be greatly appreciated.
>> >> >>>
>> >> >>> Thanks
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Mohammed
>> >> >>> www.imaginecorp.com/what_we_do.htm
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>



Re: Themes & Colors by Bernhard

Bernhard
Wed Jan 24 10:50:33 CST 2007

Hi Mohammed,

if I understand you correctly, you don't want to change the Windows settings,
you only want to use those colors, that are defined in the Silver theme, for
your application. On the first view, this is a little confusing, since setting a
theme normally means: change settings of Windows.
If this is the case, then you have to switch off themes support in foxpro and
define all the colors of all your UI objects separately. Within foxpro, there is
no "modern" color scheme support, since the basic idea of Windows is: set the
appearance of all applications at OS level, not at application level.
Now, how to get the colors from the (inactive) Silver theme? This I don't know.

Regards
Bernhard Sander

Re: Themes & Colors by Jack

Jack
Wed Jan 24 10:53:46 CST 2007

On Mon, 22 Jan 2007 18:55:54 -0500, "ImagineCorp"
<ashruff@imaginecorp.com> wrote:

>Much against my better judgment I have to set windows XP themes and colors
>in our app. We normally allow the users to set their own colors using RGB().
>A client wants us to disable this and set up XP themes. The choice is Silver
>as opposed to the Default Blue. My problem is some users may have Default
>Blue set up on their machines. I do not want to use GetSysColor() or
>SetSysColor() if I can get away with it. Though I could when the app starts
>and reset when it ends. Is there another way in VFP? I can change the colors
>for all except the MessageBox() (use this a lot) and the Form Title Bar. Any
>idea how to do this?
>
>OR
>
>How do I access the Silver XP theme, is there a scheme like in the old fox
>days? If I can then I will change the scheme and reset.
>
>Also I have seen quite a few posts about disabling themes for XP as it
>causes erratic behavior i.e. cursor disappearing etc.

I have had no problems with Themes. I think most of the problems come
from forms that were written for very old versions of FoxPro.

VFP uses Windows to do the Themes painting, and as far as I know
Windows has no provision for some apps using one Themes scheme and
other apps using another. I don't think there is any way to do you
want short of changing the Themes for the entire computer.

Re: Themes & Colors by Bernhard

Bernhard
Wed Jan 24 11:02:19 CST 2007

Hi Mohammed,

in addition to my previous post:
Some elements in the UI totally rely on Windows settings, like form title bars
or the message box. For these elements there are no color or font properties or
the like in foxpro. So, if you want to change the appearance of these elements,
you only can do it by changing Windows settings.

Regards
Bernhard Sander

Re: Themes & Colors by ImagineCorp

ImagineCorp
Wed Jan 24 18:05:37 CST 2007

Hello Bernhard
You got it right. That's exactly what I want to do. Change the Colors Only.
All users have XP with themes enabled but may have different color schemes
i.e. Blue, Green and or Custom. For uniformity Management decided our app
should be Silver.
The Title Bars of the _screen and forms are all I am interested in changing
as our app uses its own colors for Forms and controls with the good old
fashioned RGB() settings in classes
Been fooling around with Bindevent() with a custom class that has methods
using GetSysColor() and SetSysColor() but cant seem to get it to work
efficiently. Thought I could bind the _screen activate and deactivate events
so when the user opens another app they will not see the changed colors....
Hate like hell to tell a new major client "Sorry cant be done..."
Thanks for our input...
--
Mohammed
http://www.imaginecorp.com/what_we_do.htm

"Bernhard Sander" <fuchs@no.spam> wrote in message
news:uiXCql9PHHA.3960@TK2MSFTNGP05.phx.gbl...
> Hi Mohammed,
>
> in addition to my previous post:
> Some elements in the UI totally rely on Windows settings, like form title
> bars or the message box. For these elements there are no color or font
> properties or the like in foxpro. So, if you want to change the appearance
> of these elements, you only can do it by changing Windows settings.
>
> Regards
> Bernhard Sander



Re: Themes & Colors by Cy

Cy
Thu Jan 25 00:41:06 CST 2007

imaginecorp wrote:
> Yes... been in the US all my life thank you.
> The question was:
> To make our app look and feel like an XP app, I need to change the app
> apperience to:
> Theme: Windows XP
> Color Scheme: Silver.
>
> All computers are running XP. Some have the default blue as a color scheme.
> (Where colors are concerned, Microsoft Suc*s)
> I need to switch the Color Scheme from Default Blue, when the app starts, to
> Silver then Vice Versa when the app ends.
>
> SetSyscolor() does not seem to do it. It will not change the _screen and
> Forms Title Bar color even though I am changing activecaption (2) and
> gradientactivecaption (27).
>
> Do you know how to do this? if so would appreciete some help here.
>
> Thanks
> Mohammed
>
>
>
> "Craig Berntson" wrote:
>
>> Are you in the US? Is your client aware that by forcing colors in the
>> application, they could violate the Citizens with Disabilities Act?
>>
>> --
>> ----
>> Craig Berntson
>> MCSD, Visual FoxPro MVP
>> Salt Lake City Fox User Group
>> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>>> Much against my better judgment I have to set windows XP themes and colors
>>> in our app. We normally allow the users to set their own colors using
>>> RGB(). A client wants us to disable this and set up XP themes. The choice
>>> is Silver as opposed to the Default Blue. My problem is some users may
>>> have Default Blue set up on their machines. I do not want to use
>>> GetSysColor() or SetSysColor() if I can get away with it. Though I could
>>> when the app starts and reset when it ends. Is there another way in VFP? I
>>> can change the colors for all except the MessageBox() (use this a lot) and
>>> the Form Title Bar. Any idea how to do this?
>>>
>>> OR
>>>
>>> How do I access the Silver XP theme, is there a scheme like in the old fox
>>> days? If I can then I will change the scheme and reset.
>>>
>>> Also I have seen quite a few posts about disabling themes for XP as it
>>> causes erratic behavior i.e. cursor disappearing etc.
>>>
>>> Any and all ideas will be greatly appreciated.
>>>
>>> Thanks
>>>
>>>
>>> --
>>> Mohammed
>>> www.imaginecorp.com/what_we_do.htm
>>>
>>>
>>
>>
It would probably be close to impossible to do seamlessly and smoothly
all the time, and as has been mentioned may be a violation of the law to
take the users ability to control screen colors, particularly since some
users MUST use specific color combinations because of vision problems.
To hard code the colors and change the windows color settings could put
an employer in violation of the ADA requirements.

You can try all you want, but I would guess this may be something that
VFP has been specifically designed to prevent being done.

--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com

Re: Themes & Colors by Fred

Fred
Thu Jan 25 01:31:34 CST 2007

Same result. The whole idea of Windows is to provide a consistent color
setting s across all applications. That's what themes are for, not to allow
some renegade application to deviate from the consistancy.

If you change the color scheme, you change ALL applications. Windows is a
multitasking environment and your app may not be in control the entire time.
Perhaps you don't get the way that Windows works and is used by the majority
of it's users?

If you want to change the way your app looks color-wise, knock yourself out.
Just leave everyone else's app alone.

No soapbox involved.

--
Fred
Microsoft Visual FoxPro MVP


"imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
news:8DFCA9C6-25B9-4520-A916-8E84D0CA01B8@microsoft.com...
> Did you read the whole post? Nobody is suggesting scre*ing around with the
> resolution or screen size, ONLY COLORS. User computers have XP themes
> enabled
> with VARIOUS color schemes, For the sake of uniformity Silver (color
> scheme)
> was selected by management for our app. Are you with me so far.)
> There is absolutely no problem with setting colors (NOT screen resolution,
> size etc) when the app starts then resetting it back when it ends. I fail
> to
> see how this impacts other applications IF it is programmed correctly? The
> magic word is "programmed correctly".
> After 20+ years of programming and over 60 or so applications under my
> belt,
> I am sure; I am familiar with good programming practices.
> As this app will not be used by you or your office you can get off your
> soapbox. Sometimes its better Not to respond to a post if you cannot
> suggest
> or do not know of a solution
> Mohammed
> www.imaginecorp.com
>
>
> "Fred Taylor" wrote:
>
>> Since any application that took it upon itself to mess with the color
>> schemes and/or screen resolution on MY (or any computer in our offices)
>> that
>> would have an impact on other applications, would soon find itself in the
>> circular file.
>>
>> --
>> Fred
>> Microsoft Visual FoxPro MVP
>>
>>
>> "imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
>> news:A9C65D36-332E-4A5A-AAC2-46D008DE90C9@microsoft.com...
>> >> To get the silver XP theme, set the XP theme to the silver one. IOW,
>> >> let
>> >> XP
>> >> do the work.
>> >
>> > If this was what I needed I would have posted my question in a NB for
>> > the
>> > mentally challenged...
>> > Thanks anyway
>> > Mohammed
>> >
>> >
>> > "Dan Freeman" wrote:
>> >
>> >> The last version of FP where color schemes worked (or had any
>> >> relevance
>> >> at
>> >> all) was FP/DOS.
>> >>
>> >>
>> >> Dan
>> >>
>> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> news:eCJNJdoPHHA.3544@TK2MSFTNGP03.phx.gbl...
>> >> > Hello Dan;
>> >> > using VFP9 SP1. Had problems with the cursor disappearing etc. App
>> >> > was
>> >> > not
>> >> > transported from FPW. Is there a Color scheme I can access in XP to
>> >> > change
>> >> > the XP Color Scheme to Silver with Themes enabled?
>> >> >
>> >> > --
>> >> > Mohammed
>> >> > www.imaginecorp.com/what_we_do.htm
>> >> >
>> >> > "Dan Freeman" <spam@microsoft.com> wrote in message
>> >> > news:Op6Z1UoPHHA.3344@TK2MSFTNGP02.phx.gbl...
>> >> >> Assuming you are using VFP8 or later, support for XP themes is
>> >> >> built-in.
>> >> >>
>> >> >> The turning off of Themes applies to forms transported from FPW.
>> >> >>
>> >> >> Dan
>> >> >>
>> >> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> >> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>> >> >>> Much against my better judgment I have to set windows XP themes
>> >> >>> and
>> >> >>> colors in our app. We normally allow the users to set their own
>> >> >>> colors
>> >> >>> using RGB(). A client wants us to disable this and set up XP
>> >> >>> themes.
>> >> >>> The
>> >> >>> choice is Silver as opposed to the Default Blue. My problem is
>> >> >>> some
>> >> >>> users may have Default Blue set up on their machines. I do not
>> >> >>> want
>> >> >>> to
>> >> >>> use GetSysColor() or SetSysColor() if I can get away with it.
>> >> >>> Though
>> >> >>> I
>> >> >>> could when the app starts and reset when it ends. Is there another
>> >> >>> way
>> >> >>> in VFP? I can change the colors for all except the MessageBox()
>> >> >>> (use
>> >> >>> this a lot) and the Form Title Bar. Any idea how to do this?
>> >> >>>
>> >> >>> OR
>> >> >>>
>> >> >>> How do I access the Silver XP theme, is there a scheme like in the
>> >> >>> old
>> >> >>> fox days? If I can then I will change the scheme and reset.
>> >> >>>
>> >> >>> Also I have seen quite a few posts about disabling themes for XP
>> >> >>> as
>> >> >>> it
>> >> >>> causes erratic behavior i.e. cursor disappearing etc.
>> >> >>>
>> >> >>> Any and all ideas will be greatly appreciated.
>> >> >>>
>> >> >>> Thanks
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Mohammed
>> >> >>> www.imaginecorp.com/what_we_do.htm
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>



Re: Themes & Colors by Fred

Fred
Thu Jan 25 01:38:08 CST 2007

Sorry if you're under pressure to do something that Windows isn't intended
to do, I certainly know how unreasonable some management/end user requests
can be. Somethings aren't meant to be done, and others are just down right
difficult.

--
Fred
Microsoft Visual FoxPro MVP


"imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
news:4E6FCBE5-8643-4CC0-9BDC-25A2F2708959@microsoft.com...
> Stephen: Could not agree with you more.
> If you have read my posts ever since I have been on this NG (long long
> time), I have never been rude discourteous etc. I am stuck at a problem
> with
> the clock ticking and rather than a solution or Tips, I get a Programming
> 101
> lecture. I started this thread with "Against my better judgement..." so I
> do
> understand the implications of changing user settings etc.
>
> But you are right. Dan & Fred, please accept my apology...just stressed
> out
> here.
> Mohammed
>
> "Stephen Ibbs" wrote:
>
>> When somebody is stuck with a problem and comes onto a NG to ask for help
>> from experts who clearly know their stuff, are MVP, MCP etc etc there are
>> two approaches if the response hasn't answered the question originally
>> posed:
>>
>> 1) Be courteous, cheerful, friendly, apologise if the original post was
>> misinterpreted because perhaps it was phrased badly, and rephrase the
>> question.
>>
>> 2) Be short, offensive, insert some patronising remark about 'Are you
>> with
>> me so far', accuse the expert of being on a 'soapbox' and be generally
>> rude
>>
>> Which approach is likely to generate a positive response that will solve
>> the
>> problem, save time, stress, unpleasantness, etc etc and persuade people
>> to
>> offer help in the future.
>>
>> Tough call - let me think - let me think ...
>>
>> Stephen
>>
>> "imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
>> news:8DFCA9C6-25B9-4520-A916-8E84D0CA01B8@microsoft.com...
>> > Did you read the whole post? Nobody is suggesting scre*ing around with
>> > the
>> > resolution or screen size, ONLY COLORS. User computers have XP themes
>> > enabled
>> > with VARIOUS color schemes, For the sake of uniformity Silver (color
>> > scheme)
>> > was selected by management for our app. Are you with me so far.)
>> > There is absolutely no problem with setting colors (NOT screen
>> > resolution,
>> > size etc) when the app starts then resetting it back when it ends. I
>> > fail
>> > to
>> > see how this impacts other applications IF it is programmed correctly?
>> > The
>> > magic word is "programmed correctly".
>> > After 20+ years of programming and over 60 or so applications under my
>> > belt,
>> > I am sure; I am familiar with good programming practices.
>> > As this app will not be used by you or your office you can get off your
>> > soapbox. Sometimes its better Not to respond to a post if you cannot
>> > suggest
>> > or do not know of a solution
>> > Mohammed
>> > www.imaginecorp.com
>> >
>> >
>> > "Fred Taylor" wrote:
>> >
>> >> Since any application that took it upon itself to mess with the color
>> >> schemes and/or screen resolution on MY (or any computer in our
>> >> offices)
>> >> that
>> >> would have an impact on other applications, would soon find itself in
>> >> the
>> >> circular file.
>> >>
>> >> --
>> >> Fred
>> >> Microsoft Visual FoxPro MVP
>> >>
>> >>
>> >> "imaginecorp" <imaginecorp@discussions.microsoft.com> wrote in message
>> >> news:A9C65D36-332E-4A5A-AAC2-46D008DE90C9@microsoft.com...
>> >> >> To get the silver XP theme, set the XP theme to the silver one.
>> >> >> IOW,
>> >> >> let
>> >> >> XP
>> >> >> do the work.
>> >> >
>> >> > If this was what I needed I would have posted my question in a NB
>> >> > for
>> >> > the
>> >> > mentally challenged...
>> >> > Thanks anyway
>> >> > Mohammed
>> >> >
>> >> >
>> >> > "Dan Freeman" wrote:
>> >> >
>> >> >> The last version of FP where color schemes worked (or had any
>> >> >> relevance
>> >> >> at
>> >> >> all) was FP/DOS.
>> >> >>
>> >> >>
>> >> >> Dan
>> >> >>
>> >> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> >> news:eCJNJdoPHHA.3544@TK2MSFTNGP03.phx.gbl...
>> >> >> > Hello Dan;
>> >> >> > using VFP9 SP1. Had problems with the cursor disappearing etc.
>> >> >> > App
>> >> >> > was
>> >> >> > not
>> >> >> > transported from FPW. Is there a Color scheme I can access in XP
>> >> >> > to
>> >> >> > change
>> >> >> > the XP Color Scheme to Silver with Themes enabled?
>> >> >> >
>> >> >> > --
>> >> >> > Mohammed
>> >> >> > www.imaginecorp.com/what_we_do.htm
>> >> >> >
>> >> >> > "Dan Freeman" <spam@microsoft.com> wrote in message
>> >> >> > news:Op6Z1UoPHHA.3344@TK2MSFTNGP02.phx.gbl...
>> >> >> >> Assuming you are using VFP8 or later, support for XP themes is
>> >> >> >> built-in.
>> >> >> >>
>> >> >> >> The turning off of Themes applies to forms transported from FPW.
>> >> >> >>
>> >> >> >> Dan
>> >> >> >>
>> >> >> >> "ImagineCorp" <ashruff@imaginecorp.com> wrote in message
>> >> >> >> news:%23E8ujDoPHHA.1240@TK2MSFTNGP03.phx.gbl...
>> >> >> >>> Much against my better judgment I have to set windows XP themes
>> >> >> >>> and
>> >> >> >>> colors in our app. We normally allow the users to set their own
>> >> >> >>> colors
>> >> >> >>> using RGB(). A client wants us to disable this and set up XP
>> >> >> >>> themes.
>> >> >> >>> The
>> >> >> >>> choice is Silver as opposed to the Default Blue. My problem is
>> >> >> >>> some
>> >> >> >>> users may have Default Blue set up on their machines. I do not
>> >> >> >>> want
>> >> >> >>> to
>> >> >> >>> use GetSysColor() or SetSysColor() if I can get away with it.
>> >> >> >>> Though
>> >> >> >>> I
>> >> >> >>> could when the app starts and reset when it ends. Is there
>> >> >> >>> another
>> >> >> >>> way
>> >> >> >>> in VFP? I can change the colors for all except the MessageBox()
>> >> >> >>> (use
>> >> >> >>> this a lot) and the Form Title Bar. Any idea how to do this?
>> >> >> >>>
>> >> >> >>> OR
>> >> >> >>>
>> >> >> >>> How do I access the Silver XP theme, is there a scheme like in
>> >> >> >>> the
>> >> >> >>> old
>> >> >> >>> fox days? If I can then I will change the scheme and reset.
>> >> >> >>>
>> >> >> >>> Also I have seen quite a few posts about disabling themes for
>> >> >> >>> XP
>> >> >> >>> as
>> >> >> >>> it
>> >> >> >>> causes erratic behavior i.e. cursor disappearing etc.
>> >> >> >>>
>> >> >> >>> Any and all ideas will be greatly appreciated.
>> >> >> >>>
>> >> >> >>> Thanks
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> --
>> >> >> >>> Mohammed
>> >> >> >>> www.imaginecorp.com/what_we_do.htm
>> >> >> >>>
>> >> >> >>>
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>



RE: Themes & Colors by imaginecorp

imaginecorp
Thu Jan 25 10:37:04 CST 2007

Well letâ??s put this to rest.
By way of explanation: Our app which is geared towards the trucking industry
allows users to create their own profiles only where appearances are
concerned. Users have the capability to choose their own background colors
for form and all colors (Background, fore color, Selected etc.) for each
control. They also have the capability to resize. Their profile is saved and
presented every time they log on. Users with Visual disabilities love our
system. The default color we use for forms is RGB(224,223,227) or Grey.
The app has always run with Themes switched off at the Application Level and
the Color Source for every object is always 0 â?? Objectâ??s Color Properties.
Itâ??s been like this for the last 6 years with no complaints from our
existing clients.
Now we are wooing a new major client who would like our app to have the look
and feel of Windows XP with Themes enabled. This presents a problem as the
Form Title Bar, Borders and Screen Title bar could be any color preset at the
OS level. This makes our App look garish especially with the Default Blue or
Green. Silver complements our App thus my question on this NG.
Yes; I am in full agreement that an application should not change the
appearance of other applications, but I am also aware that our clients pay my
mortgage and grocery bills. Our service philosophy has always been that we
exist and are successful only because we provide our clients with what they
want.
After fooling around with Bindevent(), SetSysColor(), Skins, Custom forms
etc, I have come to the conclusion that this is definitely not the approach,
even though I have it working, as it is not reliable. I am not going to waste
any time on this and will have to have our â??potentialâ?? client enforce Silver
on their employee computers.
I hope the Fox team will come up with the capabilit in VFP to change the
Title bar and borders. It seems silly to leave these 3 out.

Mohammed
www.imaginecorp.com



"ImagineCorp" wrote:

> Much against my better judgment I have to set windows XP themes and colors
> in our app. We normally allow the users to set their own colors using RGB().
> A client wants us to disable this and set up XP themes. The choice is Silver
> as opposed to the Default Blue. My problem is some users may have Default
> Blue set up on their machines. I do not want to use GetSysColor() or
> SetSysColor() if I can get away with it. Though I could when the app starts
> and reset when it ends. Is there another way in VFP? I can change the colors
> for all except the MessageBox() (use this a lot) and the Form Title Bar. Any
> idea how to do this?
>
> OR
>
> How do I access the Silver XP theme, is there a scheme like in the old fox
> days? If I can then I will change the scheme and reset.
>
> Also I have seen quite a few posts about disabling themes for XP as it
> causes erratic behavior i.e. cursor disappearing etc.
>
> Any and all ideas will be greatly appreciated.
>
> Thanks
>
>
> --
> Mohammed
> www.imaginecorp.com/what_we_do.htm
>
>
>

Re: Themes & Colors by Dan

Dan
Thu Jan 25 21:59:57 CST 2007

Management misdirection is final, eh?.

The whole POINT of themes, of course, is that each appilcation should use
the themes chosen on the the current machine. Going for ANYTHING DIFFERENT
would get your application deleted at most any of our clients.

Dan

"ImagineCorp" <ashruff@imaginecorp.com> wrote in message
news:eWmUVSBQHHA.4484@TK2MSFTNGP02.phx.gbl...
> Hello Bernhard
> You got it right. That's exactly what I want to do. Change the Colors
> Only. All users have XP with themes enabled but may have different color
> schemes i.e. Blue, Green and or Custom. For uniformity Management decided
> our app should be Silver.
> The Title Bars of the _screen and forms are all I am interested in
> changing as our app uses its own colors for Forms and controls with the
> good old fashioned RGB() settings in classes
> Been fooling around with Bindevent() with a custom class that has methods
> using GetSysColor() and SetSysColor() but cant seem to get it to work
> efficiently. Thought I could bind the _screen activate and deactivate
> events so when the user opens another app they will not see the changed
> colors....
> Hate like hell to tell a new major client "Sorry cant be done..."
> Thanks for our input...
> --
> Mohammed
> http://www.imaginecorp.com/what_we_do.htm
>
> "Bernhard Sander" <fuchs@no.spam> wrote in message
> news:uiXCql9PHHA.3960@TK2MSFTNGP05.phx.gbl...
>> Hi Mohammed,
>>
>> in addition to my previous post:
>> Some elements in the UI totally rely on Windows settings, like form title
>> bars or the message box. For these elements there are no color or font
>> properties or the like in foxpro. So, if you want to change the
>> appearance of these elements, you only can do it by changing Windows
>> settings.
>>
>> Regards
>> Bernhard Sander
>
>