Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coloring just a part of a text box
Message
De
21/09/2010 07:18:32
 
 
À
21/09/2010 07:00:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01481587
Message ID:
01482119
Vues:
60
Usually I'd say, do it as Naomi described it. But I don't know how you want to handle further input.

So, a shape behind your transparent textbox might be an option. However, you would have to calculate the width of your shape and its left offset relative to your textbox. I don't know if this is such a good idea at all.

Alternatively you could handle it with a grid just below your textbox and populate the cursor with all the records, that still match your textbox.value.



>But I need to color just a part of it depending on the specific test which matches a search
>
>>Hi,
>>
>>If you want to color the background of your textbox, you could make it transparent and place a picture behind it.
>>
>>additionally: Craig Boyd showed some cool gradient effects with GDI+ and grids and maybe this could help you more, as he generated the effect on the fly based on background gradient functions.
>>
>>http://www.sweetpotatosoftware.com/spsblog/CommentView,guid,94b58210-456a-4fc5-84c9-39db7dcde478.aspx
>>
>>>Hi all,
>>>Is it possible to colour just a piece of text box ? If so how ?
>>>
>>>thanks Alessio
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform