Before you break out the champagne, be aware of bug ztsuceoq.
I wrote my own word-wrapping logic (which includes kerning) because I
couldn't get the LinNumAtCharPos to be stable with different small
font sizes.
This was in 5.5.5 but I don't think the bug will be fixed until they
move to the Cocoa-based edit fields (I don't expect any control-based
bugs to be fixed).
On 24/03/2006, at 7:47 PM, Sven E Olsson wrote:
On Mar 24, 2006, at 12:25 , Steve Garman wrote:
SelStart starts from position 0
CharPos starts from position 1
so you need:
LineNum = me.LineNumAtCharPos(me.SelStart+1)
Thx Steve and Mark!
Yes it works.
Sven E Olsson
_______________________________________________
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>
_______________________________________________
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>