| To: | REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: testo colorato |
| From: | Giovanni Gualeni <ggualeni at tiscali dot it> |
| Date: | Fri, 1 Feb 2008 14:35:05 +0100 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug dot it at lists dot realsoftware dot com |
| References: | <60ED6A18-1E08-4D6A-B1A4-EC4D0953B4AE at tin dot it> <ABDB2E61-38D3-4D75-A072-45DC07564756 at cantoberon dot it> <55E8A42D-9E04-49DE-883F-2E164C822B6B at tiscali dot it> |
Il giorno 01/feb/08, alle ore 14:12, Giovanni Gualeni ha scritto: Il giorno 01/feb/08, alle ore 12:30, Giulio Mastrosanti ha scritto:il comando textcolor imposta il colore di tutto il testo dell'editfield,se vuoi in colori diversi solo determinate righe o parti del testo,Mi sa che avete un ragione entrambi:
E siccome mi piace semplificare:
Dim i, pos, l As Integer
Dim Num As Double
Dim r As New Random
For i=0 To 100
num=r.InRange(1,1000)
pos=Len(EditField1.text)
l=Len(Str(Num))
EditField1.AppendText Str(num)+EndOfLine
If Num>500 Then //solo nel caso che...
EditField1.StyledText.TextColor(pos,l) = &cFF0000
End If
Next
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: testo colorato, Giovanni Gualeni |
|---|---|
| Next by Date: | Ancora listati, Lucio Liberi |
| Previous by Thread: | Re: testo colorato, Giovanni Gualeni |
| Next by Thread: | Ancora listati, Lucio Liberi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |