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