Change GET TEXT COLOR when GET Focused.

Change GET TEXT COLOR when GET Focused.

Postby shri_fwh » Sat Oct 27, 2012 11:02 am

Hi ,

I want to change the TEXT Color ONLY when GET is focused. Please guide me how I can set it ?

Thanks in advance..!
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: Change GET TEXT COLOR when GET Focused.

Postby Otto » Sat Oct 27, 2012 11:14 am

Shridhar,
maybe SetGetColorFocus() is what you are looking for.
Best regrads,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6272
Joined: Fri Oct 07, 2005 7:07 pm

Re: Change GET TEXT COLOR when GET Focused.

Postby ukoenig » Sat Oct 27, 2012 11:29 am

Shridhar,

Changing a SINGLE-get ( not global !!! ),
otherwise Ottos solution.

REDEFINE GET oGet VAR nTickCount ID 970 PICTURE "99999" OF oDlg UPDATE

This changes the GET ON FOCUS to RED with black text
oGet1:bGotFocus := { | nKey, nFlags | oGet:SetColor( 0, 255 ) }

This changes the GET to WHITE with black text
oGet1:bLostFocus := { | nKey, nFlags | oGet:SetColor( 0, 16777215 ) }

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Change GET TEXT COLOR when GET Focused.

Postby shri_fwh » Sat Oct 27, 2012 11:50 am

Hi Otto, Uwe ,

Want to set globally but, as SetGetColorFocus() function I can set color only for Background not for Text. Is there any way so I can set color for both Text and Background globally ?

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 160 guests