[fxruby-users] Advice sort on using FXText widget

Lyle Johnson lyle at knology.net
Sun Dec 18 21:57:28 EST 2005

On Dec 18, 2005, at 6:00 PM, Russell Fulton wrote:

> Currently I'm using FXText but I find the FXEvent returns pixel (?)
> coordinates but all the FXText methods take a single 'pos' parameter
> which presumably is the index from the start of the buffer.  Clearly
> there must be a straight forward way to may between the two but I can't
> figure it out.

Have you tried the getPosAt() method, which should return the text 
position for a given (x, y) location in the visible area of the text 

More information about the fxruby-users mailing list