Options for TGFileDialog

Hi all,

I’ve beent trying to find out how I can set how the files are shown and sorted in a TGFileDialog
before I open it. That is, when it pops up doing

  new TGFileDialog(gClient->GetRoot(), fMain, kFDSave, &fi);

I would like to to look like the first picture and not the second, that is list mode sorted by date…

Any ideas…

cheers

Joa



Hi Joa,

Sorry, but there is no simple method to change this…

Cheers, Bertrand.

Hi,

I just wanted to make sure, whether there are some updates on this,
to sort files by modification date before opening the file dialog.

Hi,

Bertrand, our GUI expert will let you know once back - in about two wees.

Cheers, Axel.

Hi,

There is no solution. But may I ask what would be the purpose of sorting the files before opening the file dialog? (which, BTW, is displayed at creation time…)

Cheers, Bertrand.

Thanks for the answer,

The program I have, needs to choose a data file from a directory
then make a graph and fit it.
Mostly we need to open the most recent file, or one of the recent files,
therefore it is convenient to have a “ordered by time” view when the dialog is opened,
but now when it opens, each time user needs to push the button “List View” then "Modified"
to sort by time.

Maybe the word “before” is not a good chosen word, instead can be
"as soon user opens the FileDialog"