[Gambas-user] Editor - How to

Bruce bbruen at ...2308...
Mon Oct 21 23:41:11 CEST 2013


On Mon, 2013-10-21 at 14:12 -0700, Charlie wrote:
> I want to use the "Editor" feature to highlight part of a string in bold. I
> have looked at the "Highlighter" example provided in Gambas 3.5 (and perhaps
> earlier versions) but I just can't work it out.
> 
> I would like something like: -
> 
> String1 = "Hello"
> String2 = " to you"
> Editor1.text= String1 & String2.Bold
> 
> I know it does not work this way but I hope this helps explain what I am
> looking for.
> 
> Thanks in advance for any help.

> 
> 
[Quicky]
[From memory]

String2 = "<b> to you</b>"
Editor1.richtext= String1 & String2.Bold

(but I think you want more than that?)

Bruce





More information about the User mailing list