Hi Sven, | I can't get the Linenum feature to work properly. | | I think the LineNum should be the same both at the beginning | of an line | and at the end of an line. | | And there are two ways to show Linenum ... | 1 - Using and calculated on the EndOfLine | 2 - Calculated on the Lines in the EditField (softwrap) | | | But the result should be the same in the beginning and end of the | EditField line. | | Here is an example project (Mac zip) | http://www.okraft.nu/seedit/tmp/LineNum.zip | | Use the up and down arrows and mouse click to check the results. | Check both the beginning of an line and middle/end. | And of course any ideas how to fix this are more than welcome.
How about.... dim LineNum, LinePos as integer LineNum = me.LineNumAtCharPos(me.SelStart+1) LinePos = me.SelStart+1 StaticText1.Text = str(LineNum) + "/" + str(LinePos) Does that help? All the best, Mark. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.2.6/288 - Release Date: 22/03/2006 _______________________________________________ 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>
