Welcome! Log In Create A New Profile

Advanced

change border color on gotfocus

Posted by Javier.pcs.crosspost 
Javier.pcs.crosspost
change border color on gotfocus
July 15, 2009 12:26PM
Hello. How can I change the border color of an edit control when it takes the focus for the user to quickly identify which field is edited.

Thank you.


Message forwarded from pcsoft.us.windev
Marc De Swert
Re: change border color on gotfocus
July 15, 2009 01:20PM
Yo javier

Simple:


RETURNTOCAPTURE FIELDNAME //to get focus

FIELDNAME..BrushColor = BrushColor = iLightYellow //or any color you specify


Marc :cool:
Marc De Swert
Re: change border color on gotfocus
July 15, 2009 01:21PM
Sorry, misstake in copy and paste

RETURNTOCAPTURE FIELDNAME //to get focus

FIELDNAME..BrushColor = iLightYellow //or any color you specify

Marc :cool:
DW
Re: change border color on gotfocus
July 16, 2009 02:38PM
Javier

The easy way without code is using styles. Take the Zune Style is changes color when you hover and when it gets focus.

<a href="[tinypic.com"]; target="_blank"><img src="[i25.tinypic.com]; border="0" alt="Image and video hosting by TinyPic"></a>

Dennis W
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: