Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecionar e destacar texto no Rich Edit
Message
From
23/10/2003 10:42:17
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841485
Message ID:
00841567
Views:
25
This message has been marked as the solution to the initial question of the thread.
Oi Vinicius,
>
>Tentei de diversas formas sem sucesso implementar o seguinte:
>
Dei uma olhada aqui e acolá.. A partir da resposta do Sergey.. Desenrolei o que voce procurava..

Funcionou perfeito aqui..
Declare INTEGER LockWindowUpdate IN Win32API INTEGER hWnd
lnpos                               = 1
lnoccurs                            = 0
With Thisform.RTF
    LockWindowUpdate(.hWnd)
    Do while lnpos > 0
        lnpos                       = .Object.Find(allt(ThisForm.Text1.value), lnpos)
        If lnpos >= 0
           .Object.SelBold          = .T.
           .object.selunderline     = .T.
           .Object.SelColor         = RGB(255,0,0)
           .object.selfontsize      = .object.selfontsize + 3
            lnpos                   = .Object.selstart + 1
            lnpos                   = iif(lnpos=1, 0, lnpos)
            lnoccurs                = lnoccurs + 1
        Endif
    Enddo
    if  lnoccurs > 0
        lnpos                       = .Object.Find(allt(ThisForm.Text1.value), 1)
    endif
endwith
LockWindowUpdate(0)
Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform