How to get the position of a object dynamicly?

[size=150]
hello,all,
How can I show the position of a object dynamicly If I move it in the Pad by mouse?
If the position of a object changed, what’s the signal will be emitted?

Many thanks.
[/size]

Hi,

Please see the example $ROOTSYS/tutorials/gui/exec3.C

This macro shows how you can connect a method to the ProcessedEvent signal of the TCanvas. The information it gives: what event, where it happens in (x,y), what object participates, might help you to get what you want.

Cheers, Ilka

thanks