[Gambas-user] yperlink and TextEdit control

Charlie Reinl Karl.Reinl at ...2345...
Tue Sep 6 10:57:20 CEST 2011


Am Dienstag, den 06.09.2011, 06:00 +0200 schrieb Andrea Bertini:
> @Charlie
> 
> thx:-)
> 
> I insert an hyperlink in TextEdit control with the code (test code):
> 
> TextEdit1.RichText = "<a href='" & $_Param[2] & "'>" & $_Param[1] &
> "/a>"
> 
> The problem is to insert an hyperlink in an existing text at the curson
> position
> 
> Andrea
Salut Andrea,

  Param1 = "gambas_1"
  Param2 = "http://gambas.sourceforge.net/en/main.html"

s = "<a href=\"" & Param2 & "\">" & Param1 & "</a>"  

s &= "<BR>" 

s &= "<a href=\"http://gambas.sourceforge.net/en/main.html\" > gambas_2
</a>"

but you have no link event
-- 
Amicalement
Charlie





More information about the User mailing list