Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox format
Message
From
03/08/2004 04:50:35
 
 
To
12/07/2004 00:12:20
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00923194
Message ID:
00930261
Views:
20
Tariq

Not possible in one textbox but you could split the text into 2 and have a different colour in each.
Another way would be to split the 2 halves into 2 labels (each coloured different and abutting) and site the labels inside a container object, with its specialeffect prop. set to 1 - sunken, suitably sized (and coloured if necesaary) to look like one of your text boxes. I think this would work fine.

If you need to do some manipulation on the text this wouldn't be possible, but you could do that in an overlayed text box, which could be set to invisible afterwards. The valid clause of the text box could do the splitting etc. then disappear itself.

HTH

Terry

>Dear Sir,
>
>I have a numeric type textbox with following properties
>
>format: 9999-999
>maxlength:7
>value=0
>forecolor:rgb(0,0,255)
>
>I want to display the font in two colors for example
>I devide the textbox into two portions such as
>one part is before dash (-) and the rest is after dash.
>
>I want to display 9999 in blue color as well as 999 in green color.
>
>Is it possible to show textbox in two colors.
>
>Please help me
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform