Thank you Mark,
GetInsertionPoint does the trick. Even better, using PositionToXY on the
insertion point removes any windows newline/return weirdness.
Oddly though, the mouse is left in a strange state after clicking as if I were
dragging the mouse with the button held down.
At 02:11 PM 4/19/2006, Mark Dootson wrote:
>Hi Peter,
>I've just tested responding to EVT_LEFT_UP in a TextCtrl.
>Calling:
>my $ip = $this->{MyTextCtrl}->GetInsertionPoint();
>in the event proc gets you the zero based insertion point in the text
>from which you can determine which word (or space) the user clicked on.
>
>Cheers
>Mark
>
>Peter Theobald wrote:
>> Martin, the important difference is I need to know which WORD was clicked
>> on, not just which element in a list. I could use a list control instead of
>> a text control, but I need to find which of the many words across the row
>> was clicked on.
>> -Peter
>>
__--=Peter Theobald=--__
www.PeterTheobald.com
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|