[Gambas-user] TextEdit and linefeeds

Fabien Bodard gambas.fr at ...626...
Sun Nov 6 15:07:49 CET 2011


I not really understand what you want ... :/
' display text in mainlog textarea
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PUBLIC SUB WriteLog(sText AS String, OPTIONAL bStrip AS Boolean)

  IF NOT bStrip THEN sText &= "</br>"

  sText = Format$(Now, "yyyy/mm/dd hh:nn:ss") & " " & sText
  FMain.txtMainLog.EnsureVisible
  FMain.txtMainLog.Text &= sText
  PRINT sText;

END

2011/11/6 Ron <ron at ...1740...>:
> Hi all,
>
> In my project I replaced the txtArea for readlonly TextEdit objects so I
> can color the text I want to emphasize, this works good.
>
> But how can I just do a single line wrap, until now I only got a blank line
> in between lines, or all lines concatenated together ;-(
>
> It must be something simple, see attached Gambas2 object to see what I mean.
>
> Thanks for any pointers in the right direction...
>
> Regards,
> Ron_2nd,
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>



-- 
Fabien Bodard




More information about the User mailing list