[Gambas-user] Editor - How to

Rolf-Werner Eilert eilert-sprachen at ...221...
Tue Oct 22 12:31:52 CEST 2013



Am 21.10.2013 23:41, schrieb Bruce:
> 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

Errrm - Bruce, shouldn't it be EITHER String2 = "<b> to you</b>" OR 
String2.Bold?

Rolf




More information about the User mailing list