Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Macromedia Licensing
File Open Dialog Behavior
Check For Previous Open
Popup Text List Menu
Slider behaviour v2.2
Install Maker
Sound not playing
Standard 3 state button
Direct Media Balance Slider
Set Registration Point of Sprite
MediaMacros Xtras Mall
 

 

 

Behavior Get Visual Line Count and Current Visual Line of Insertion

Added on 5/6/2005

 

Compatibilities:
D8 D8_5 D9

This item has not yet been rated

Author: Chunick (website)

Due to text wrapping you cannot get the visual line you click on unless 'hard returns' are used after each line. Following are two functions that will return the total number of visual lines and the visual line that the insertion carat is currently on, respectively. The last can be modified to return the line under the mouse cursor.

on getLineCount (theMem)
theMemHeight = theMem.height
theLineCount = theMem.locVtoLinePos(theMemHeight)
return theLineCount
end

on getInsertionLine (theMem)
theSelect = theMem.selection
theLoc = theMem.CharPosToLoc(vSelect[1] + 1)
theLine = theMem.LocVToLinePos(vLoc.locV)
return vLine
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail