ROOT GUI: Browse button beside text input box

Hi,

I have converted a simple C++ program to a ROOT macro hoping to take advantage of ROOT’s superb data analysis capabilities.

One of the long standing issues with the program is that it’s purely command-line, making it difficult to provide as user input the path and filenames of the files to be read as input.

Since I’ve no experience making GUI’s for programs, I’m very interested in TGuiBuilder. But I can’t seem to find the appropriate widget. What I need is a “text input” box that has a “Browse” button beside it so I can search with a file explorer the appropriate input file. I also need some kind of list where I can add other input files.

I know where the text input box is in TGuiBuilder, but I have no clue how to add the browser button. Could anyone point me in the right direction for this? I checked some of tutorials, but I couldn’t see anything like this in any of them.

Thanks

Hi,

Here is a very simple example: simpleExample.C (1.8 KB)
And Sorry for the late reply, but that was in the wrong forum…

Cheers, Bertrand.

Thanks. I haven’t had time to test this, but I’ll give it a try at some point.