how to get the position of cursor in phab, Thanks.

Above the ptraw, I want to catch the LButtonDown, and get the positon
of the cursor . So that I can magnify the waveform. Who can help me .
Thanks