How do I prevent user from dragging TFrames BUT allowing zooming in the plot?

I would like to anchor a pad in a canvas in order to make it impossible to accidentally drag it from its original position.

I found old topics suggesting the solution:

Anyway, this also prevents from zooming in a plot.
Is there any way to make it possible?

Thanks a lot,
Maria Brigida

Which ROOT version are you using ? on which platform ? if I do:


the pad is fixed but I can zoom the histogram in it.

Thank you.

It now works for me (root 6.04/02). I assume something else went wrong last time.