Disable close button in the window menu

Hi,

Does anyone know if there is a way to disable the close button in the window menu in a ROOT GUI? I’ve looked in TApplication, but couldn’t find anything.

Thanks,

Rafael.

Hi

Use the TGMainFrame::SetMWMHints() method. This example should disable the “close” function:

But this is window magager dependent and may not work as expected (e.g. it doesn’t work properly on Windows)

Cheers, Bertrand.

Thanks for the help.