hi dear Sergey,
I like this behavior:
stop the horz scroll of the richview content when mousedown+mousemoveright (on selection).
Also if the document.width is > richview.width don't scroll the area.
THANKS
Search found 6 matches
- Mon Jan 08, 2007 9:26 am
- Forum: Support
- Topic: how to stop horz scrolling on selection?
- Replies: 1
- Views: 8091
- Thu Jan 04, 2007 1:20 pm
- Forum: Support
- Topic: get a line of text in faster way
- Replies: 1
- Views: 8299
get a line of text in faster way
kind Sergey, please I like obtain a similar routine for the TRichViewEdit: GetLineText(LineNum:integer):widestring; // I use only unicode For example typing a long line that wordwraps in two lines, calling GetLineText(2), it have to return only the real text in the second line, not the entire one ...
- Sat Dec 30, 2006 10:27 am
- Forum: Support
- Topic: onselect mouse down
- Replies: 2
- Views: 10127
- Fri Dec 29, 2006 8:57 pm
- Forum: Support
- Topic: onselect mouse down
- Replies: 2
- Views: 10127
onselect mouse down
kind Sergey, if I press mousedown then I move the mouse, richview starts a selection text, but it don't stop the selection scrolling in down direction when the document height reach the final (it scrolls infinitely until the text disappear completely). Where I can manage: if (rv.documentheight-rv ...
- Fri Dec 29, 2006 6:53 pm
- Forum: Support
- Topic: Get if the caret is in last line, with resize
- Replies: 2
- Views: 10109
oh indeed, it works
thank you Sergey
- Fri Dec 29, 2006 6:10 pm
- Forum: Support
- Topic: Get if the caret is in last line, with resize
- Replies: 2
- Views: 10109
Get if the caret is in last line, with resize
A Old your answer: 1) If you really mean "lines": Code: rve.GetCurrentLineCol(Line, Col); InTheFirstLine := (rve.InplaceEditor=nil) and (Line=1); InTheLastLine := (rve.InplaceEditor=nil) and (Line=rve.GetLineNo(rve.ItemCount-1, rve.GetOffsAfterItem(rve.ItemCount-1)); Lines depend on word wrapping ...