How to implement the job using pttend widget

My job is to draw some curve and one cursor (mark line) in the pttend widget,when I move the mark line by mouse in pttend widget,some data can be shown in some textbox, how can i do it?