Hi,
I've made some other tests. My calculations are working correct. Im
using, how ever, the function me.CharPosAtLineNum( InLineNumber). The
InLineNumber is well known. So if the InLineNumber gots a in my case
value of 2340 ( sometimes more ) you got suddenly a wrong character
position, beginning to count up again at position 1.
You can make a simple test to watch this behavior. In a window put an
editfield multiline is true, a second standard editfield, in which
later you will type a valid line number of the dropped text in the
first multilined editfield and a button in this window too, for your
testing-code like this:
MsgBox Str( EditField1.CharPosAtLineNum( Val( EditField2.text)))
Try some different values, you will see the problem. So, the problem
is NOT the StyledText, it's CharPosAtLineNum. Do not click into the
editfield, which contains the text. If you do so, some strange things
are happening to your results, while getting the value of character
position. A very buggy thing. Mpfff ...
surprise, surprise, surprise ...
Am 07.04.2006 um 10:37 schrieb Sven E Olsson:
Hi, I have worked with this the last 14-days.. and I have no
problem if the text is 10 lines or 50000 lines.
The problem is how to calculate the positions.... when setting the
colors..
--
Best
Vincent
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>