Set TLatex non-editable

Hi

Quick question: can a TLatex object be set non-editable or is there another way so it cannot be moved around in a plot?

Cheers,
delos

It can be done at the Pad level:

root.cern.ch/doc/master/classTP … b741096273

Thanks couet

I did gPad->SetEditable(kFALSE);
but still I can move the text around.

Cheers,
delos

The coding in TText::ExecuteEvent is quite clear. It start with:

   if (!gPad->IsEditable()) return;

So if the Pad is not editable nothing is done.

Hi

I had to

[code]TCanvas *fCanvas = M
fCanvas->cd();
fCanvas->SetEditable(kFALSE);

[/code]

and it works.

Thanks,
delos