Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Steve Dingle
  Where is Steve Dingle?
 Weybridge
 United Kingdom
 Steve Dingle
 Tags
Subject: RE: System Disabled Fore/Back Color
Thread ID: 209665 Message ID: 209742 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Win32API programming
Date: Tuesday, December 30, 2008 5:35:45 PM         
   


> Heya All,
>
> Anyone know how I can get the fore/back colors currently set as the "disabled" controls colors?
>
> I want to disabled an ActiveX control and when I disable it the colors don't change so I need to do it manually
>
> thanks,
>
> Steve Dingle
> http://weblogs.foxite.com/SteveDingle/
> www.dsbusinesssolutions.co.uk

Hi
for any control having backcolor/disabledBackcolor properties you can stay the disabled backcolor to the backcolor (without change) with this:
thisform.control.disabledBackcolor=thisform.control.backcolor

the things are the same for the forecolor
regards

ENTIRE THREAD

System Disabled Fore/Back Color Posted by Steve Dingle @ 12/30/2008 11:11:40 AM
RE: System Disabled Fore/Back Color Posted by Stefan Wuebbe @ 12/30/2008 11:30:52 AM
RE: System Disabled Fore/Back Color Posted by Steve Dingle @ 12/30/2008 12:04:11 PM
RE: System Disabled Fore/Back Color Posted by Yousfi Benameur @ 12/30/2008 5:35:45 PM