Resize TGFileDialog programmatically


ROOT Version: 6.16/00
Platform: Ubuntu 18.04
Compiler: gcc 7.3.0


Hi how’s it going! I want to resize the TGFileDialog after instantiation:
TGFileDialog* dialog = new TGFileDialog(gClient->GetRoot(), this, kFDOpen, &fi);
dialog->Resize(1000,1000);

The code above segfaults. I attach the console log here. output.txt (875 Bytes)

What is the right way to it?

Hi,

You can’t. A TGFileGialog is a modal dialog which is open immediately and wait for input, so there is nothing you can do once it’s open.

Cheers, Bertrand.

1 Like

Got it. Thanks for your reply!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.