[Gambas-user] Draw.Text problem with control chars

Fabien Bodard gambas.fr at ...626...
Sat Jan 30 09:38:10 CET 2010


draw.text(replace(stext, "\t",string(" ",5)),x,y)

Le 30 janvier 2010 00:35, Benoît Minisini
<gambas at ...1...> a écrit :
>> Salut,
>>
>> I' using gambas2 2.19.
>> For printing text, I use Draw.Text that works well.
>> But when I print Text out of a TextArea, where are sometimes control
>> chars ("\n" and "\t") in the text, I  found a problem.
>>
>> The LF (\n) is handled, but not the Tab (\t) it is show as a rectangle.
>>
>> Do I miss something ? Nothing found about!
>>
>> Does anybody have a hint/workaround ?
>>
>
> Tabs are not handled automatically, you must handle them yourself.
>
> Regards,
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list