From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
Returns (as an Integer) returns the position of the insertion point closest to pixel coordinates X,Y relative to the control. The returned value is zero-based.
This example is in the MouseDown event of a TextArea. This event passes in the X,Y coordinates of the MouseDown event and the method returns the corresponding character position.