Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Randall Morgan
Not a problem. If you're like me when you have many things going you tend to mis-type. I do it all the tmie LOL On Tue, Nov 8, 2011 at 11:51 AM, Jesus wrote: > El 08/11/11 20:41, Jesus escribió: > > > > > If you're using TextArea in Gambas3 the Randall's example should work > > only if you use .

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Jesus
El 08/11/11 20:41, Jesus escribió: > > If you're using TextArea in Gambas3 the Randall's example should work > only if you use .RichText property, instead of .Text. > > Regards > Ooops, my mistake. I meant *TextEdit*, not Textarea. And sorry for misspelling your name, Randall. Regards -- Je

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Jesus
El 08/11/11 17:05, Ron escribió: > All works, expect one thing. > Is there another way to color a line or part of a text? > > I hoped "" sText & "" worked since works, > but alas... > > Regards, > Ron_2nd. Randal Morgan wrote > Well, I don't know if this works but since you're html tags the t

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Randall Morgan
Well, I don't know if this works but since you're html tags the tag should read some text On Tue, Nov 8, 2011 at 8:05 AM, Ron wrote: > All works, expect one thing. > > When I was using the .Insert() I could set forecolor before and after the > insert to color only this line, like so: > > FLogFil

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Ron
All works, expect one thing. When I was using the .Insert() I could set forecolor before and after the insert to color only this line, like so: FLogFiles.txtMainLog.ForeColor = Color.Gray FLogFiles.txtMainLog.Insert(sText) FLogFiles.txtMainLog.ForeColor = Color.Black If I now issue a FLogFiles.t

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Fabien Bodard
yes insert is to add normal text without interpretation -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Gambas-user mailing list

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Rolf-Werner Eilert
Ok, and then you will have to do without Insert but simply concatenate the text as in my example. Those two work here in combination. Am 08.11.2011 11:27, schrieb Ron: > Rolf, > > This is what Fabian also mailed me, but it didn't work, will look into > it again, I had ReadOnly is true already set

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Ron
Rolf, This is what Fabian also mailed me, but it didn't work, will look into it again, I had ReadOnly is true already set. Thanks. Regards, Ron. > Ron, > > I guess I got it :-) I found my old project where I used it, and now > read this: > > It depends on whether TextEdit is ReadOnly AND you sho

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Rolf-Werner Eilert
Ron, I guess I got it :-) I found my old project where I used it, and now read this: It depends on whether TextEdit is ReadOnly AND you shouldn't use .Insert but concatenate TextEdit.Text (oh my goodness...). If ReadOnly = True, it reacts like TextLabel, i. e. "\n" is ignored and only HTML ta

Re: [Gambas-user] TextEdit and linefeeds

2011-11-08 Thread Rolf-Werner Eilert
Am 06.11.2011 11:22, schrieb 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. Good idea by the way... :-) > > But how can I just do a single line wrap, until now I only got a blank line > in betw

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