Re: [Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Ron
I want to use it as a logview window. I did that with textareas until now but i want to be able to color lines based on error level. So im not reading in a file to display, i want to add lines or parts of text to it while my program runs. Regards, Ron_2nd Op 6 nov. 2011 22:18 schreef "richard terry

Re: [Gambas-user] TextEdit and linefeeds

2011-11-06 Thread richard terry
On Sunday 06 November 2011 21:22:54 Ron wrote: > 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 a

Re: [Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Fabien Bodard
yes it's a good question .. and i've not the answer... 2011/11/6 Ron : > 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 pr

Re: [Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Ron
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, again... Regards, Ron_2nd. 201

Re: [Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Fabien Bodard
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 &= "" sText = Format$(Now, "/mm/dd hh:nn:ss") & " " & sText

[Gambas-user] TextEdit and linefeeds

2011-11-06 Thread Ron
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 simp

Re: [Gambas-user] Virtuality of TextArea.Selection

2011-11-06 Thread Fabien Bodard
2011/11/6 Bruce Bruen : > Damn and blast! > > How do I "devirtualize" it? > The TextArea.Selection is exactly the structure that I want to pass off > to another class. > The other class needs to know the start (mandatory, I need to handle the > beginning of the string) , length (handy) and obviousl