Information générale
Catégorie:
Codage, syntaxe et commandes
>>Hi,
>>
>>I have a window/form that has many check boxes. Each check box has a caption. I want to add a text box at the top of the form so that the user can search for any check box caption which contains the entered text. For example, when a user enters "fox", a method of the form will scan all check boxes and check if the caption has the word "fox." So far, it is all fairly easy to do.
>>
>>But then I want the substring of the caption to change the color (or make it bold). For example, if a check box has a caption
>>"Visual FoxPro" I want the word/substring "Fox" to be highlighted by a color or make it bold.
>>
>>Is this possible? And if yes, how? TIA
>
>I would then create an HTML based UI. (Or write checkbox captions using RichText control - not as intuitive as HTML)
>
>Just my 0.00005 cents.
Does your solution seem practical, Cetin? You have a need to visibly highlight search criteria. For some reason highlighting the entire control is not a viable option, so partial matches are needed. You already have a VFP system in place with a form that works. You're trying to add one feature on top of that existing tool.
Why would you go to create an HTML based UI to accomplish this add-on?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement