Lock size for TCanvas

Good afternoon
Is it possible to lock the size (width and height) for a TCanvas ?
Unabled modification with the mouse ?

Thank you

Hi,

Here is an example:

TCanvas *c1 = new TCanvas("c1", "c1", 800, 600); TGMainFrame *main = (TGMainFrame *)((TRootCanvas *)c1->GetCanvasImp()); main->SetWMSizeHints(main->GetDefaultWidth(), main->GetDefaultHeight(), main->GetDefaultWidth(), main->GetDefaultHeight(), 0, 0); Note you can also replace main->GetDefaultWidth(), main->GetDefaultHeight() with the fixed width/height you want.

Cheers, Bertrand.

Thanks
eric