Get location of click in scrolling field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Get location of click in scrolling field
Is it possible to get the line number of where a user clicks in a scrolling field?
			
			
									
									Marcus
						Re: Get location of click in scrolling field
Woo, answering lots of my own questions today.
on mouseDown
put word 2 of the clickline
end mouseDown
			
			
									
									on mouseDown
put word 2 of the clickline
end mouseDown
Marcus
						- 
				FourthWorld
- VIP Livecode Opensource Backer 
- Posts: 10065
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Get location of click in scrolling field
Well done, Marcus.  You'll make us obsolete in no time. 
			
			
									
									
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
						LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Get location of click in scrolling field
In this case I'm mimicking the Sublime IDE mini-map, so with that I can grab the line clicked in the mini-map, multiply by line-height in the target window, and set the scroll to the right position   
			
			
									
									
Marcus
						Re: Get location of click in scrolling field
You cunning fox! 
			
			
									
									
						