Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chr() checkmark symbol 2

Status
Not open for further replies.

foxup

Programmer
Dec 14, 2010
328
CA
Hi,

I need some help. I would like to show the symbol checkmark next to my textbox filed once the user enters a proper value for a field. Example, the input of the field has to have a certain criteria. if the user inputs the proper criteria, I want to show a checkmark next to the textbox (to show him that the value entered passes the criteria).

Any way of doing tht?

Please let me know.

Thanks,
FOXUP!
 
nevermind. got it.

Windings 2 - UpperCase P


Thanks anyways. ;)


FOXUP!
 
The easiest way is to put an image control showing a checkmark next to the control to be validated. Start the image as .Visible=.f., and set .Visible=.t. when validation has passed. (You can find suitable images in the Tools\Graphics folder.)

Using Chr() (per your thread title) is highly dependent on font and character set so I wouldn't go that way. Use the image. It'll look better and be more predictable.
 
Foxup,

The solution you suggest should work OK in most cases - provided the user has Wingdings2 installed on their computer. Unlike Wingdings, not all versions of Windows automatically have Wingdings2.

If this is likely to be a problem, an alternative solution would be to create the checkmark as a small bitmap or icon. Place an image control on the form, set its Picture property to the bitmap file, and toggle its visiblity when you want to show or hide it.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
Thanks Mike & Dan. Start for both of you !! :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top