TextBox for input?

Hello,
Is there a way to have a textbox to allow the user to input a file name, except for the TGText box, since my application don’t use TGWindow…

Or is there a way to have a diaglob box that asks the user a question and return his answer (text) ?

Thank you

Hi,

If you create a canvas (TCanvas), you can use the File menu /Open dialog for the user’s input. A new TFile(fi.fFilename, “update”); will be created and registered in the list of files in ROOT. You can get its name (const char *) by:

Cheers, Ilka