you can use the link sample "https: //
http://www.fivetechsoft.com" and rtf class recognizes it as a link .
creating what the friend wants is not possible in rtf classes unless you use the class in Harbor that converts the text in html ( section contribut)
I saw there is the possibilty to use html commands as in trichedit with MsftEdit.dll but Cristobal not make the function yet
you can set a line or word with the method
SetAttribute( lBold, lItalic, lUnderline, lStrikeOut, lOnOff,
lLink, nYOffSet, lSuper, lSub, lProtect, nTypeUnder ) CLASS TRichEdit5
or exactply with
setlink( lonoff) method but it not run ok
see this sample
- Code: Select all Expand view
Function MnuTypesUnder( lBtt )
local oMnu
DEFAULT lBtt := .F.
MENU oMnu POPUP 2015
MENUITEM "make Link" ACTION oRTF:SetLink( .t. )
MENUITEM "UnderLineHeavywave" ACTION oRTF:SetTypeUnderline( 12 )
MENUITEM "UnderLineDoublewave" ACTION oRTF:SetTypeUnderline( 11 )
MENUITEM "UnderLineHairline" ACTION oRTF:SetTypeUnderline( 10 )
MENUITEM "UnderLineThick" ACTION oRTF:SetTypeUnderline( 9 )
MENUITEM "UnderLineWave" ACTION oRTF:SetTypeUnderline( 8 )
MENUITEM "UnderLineDashdotdot" ACTION oRTF:SetTypeUnderline( 7 )
MENUITEM "UnderLineDashdot" ACTION oRTF:SetTypeUnderline( 6 )
MENUITEM "UnderLineDash" ACTION oRTF:SetTypeUnderline( 5 )
MENUITEM "UnderLineDotted" ACTION oRTF:SetTypeUnderline( 4 )
MENUITEM "UnderLineDouble" ACTION oRTF:SetTypeUnderline( 3 )
SEPARATOR
MENUITEM "UnderLineWord" ACTION oRTF:SetTypeUnderline( 2 )
ENDMENU
//if lBtt
//ACTIVATE MENU oMnu
//endif
Return oMnu
probable bug into RESetAttribute5( ::hWnd, nMask, nEffects, lOnOff, nYOffSet, nTypeUnder ) functions