yab | yet another Basic for HAIKU
Textedit changes. - Printable Version

+- yab | yet another Basic for HAIKU (http://yab.orgfree.com/forum)
+-- Forum: General discussion (http://yab.orgfree.com/forum/forumdisplay.php?fid=8)
+--- Forum: yab stuff (http://yab.orgfree.com/forum/forumdisplay.php?fid=10)
+--- Thread: Textedit changes. (/showthread.php?tid=43)



Textedit changes. - bbjimmy - 11-04-2015

Recent changes to TextEdit:

Added a small ( 2 pixel ) gutter around the text. This makes it much easier to read the text. This will not change the code, but may change where the words wrap or scroll in a TextEdit.

As TextEdit GET "CountLines" returns the number of lines ending in "/n", I added:

TextEdit GET "CountPhysicalLines" counts the number of lines displayed, even if wordwrap is used.

And as a counterpoint to TextEdit GET "curser-position", I added:

TextEdit SET "curser" ofset
This moves the curser to the ofset ( bytes from the beginning )indicated. Remember textcontrol counts bytes, if one uses two byte characters one must account for this.


RE: Textedit changes. - clasqm - 11-04-2015

I hate to be pedantic, but shouldn't that be "cursor"? A curser is what I become when my code does not work ...


RE: Textedit changes. - bbjimmy - 11-04-2015

(11-04-2015, 06:49 AM)clasqm Wrote: I hate to be pedantic, but shouldn't that be "cursor"? A curser is what I become when my code does not work ...

Never appologize tor a corection, Thanks, I have corected the spelling.


Free Web Hosting