TGInputDialog buttons

Dear ROOT-ers,

I am using a TGInputDialog now: it has two buttons (“OK” and “Cancel”), but one can also close the TGInputDialog window by pressing the upper right cross of the window. My question: is there a way to connect this ‘event’ (user clicking on the cross to close the window) to some slot? In other words, can I test in some way whether the user is closing the window without the OK and Cancel buttons?

Thank you!
Marco

Hi Marco,

Here is an example:

Cheers, Bertrand.