[Gambas-user] TextEdit and linefeeds

Ron ron at ...1740...
Sun Nov 6 16:10:17 CET 2011


I just want it to display the lines without blank the lines in between, see
screenshot.
Your code doesn't do it either... why??
A TextArea does it flawless with the same code.

If I leave out the \n in my code, it prints all lines together, if I only
add a \r same, </br> again...

Regards,
Ron_2nd.

2011/11/6 Fabien Bodard <gambas.fr at ...626...>

> 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
>
>
> ------------------------------------------------------------------------------
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot at 2011-11-06 16:06:46.png
Type: image/png
Size: 19175 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20111106/1527accb/attachment.png>


More information about the User mailing list