[Gambas-user] TextEdit and linefeeds

Fabien Bodard gambas.fr at ...626...
Sun Nov 6 18:46:27 CET 2011


yes it's a good question .. and i've not the answer...

2011/11/6 Ron <ron at ...1740...>:
> 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
>>
>
> ------------------------------------------------------------------------------
> 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