Re: TGFileContainer MultipleSelections

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Fri, 11 Aug 2006 16:17:27 +0200


Hi Kerry,

The multiple file selection feature is implemented and available in cvs head. In case you want to open several root files (any selection of different file type will invoke warning messages), you can do:

       TGFileInfo fi;
      new TGFileDialog(fClient->GetDefaultRoot(), this, kFDOpen, &fi);
      if (fi.fMultipleSelection && fi.fFileNamesList) {
         TObjString *el;
         TIter next(fi.fFileNamesList);
         while ((el = (TObjString *) next())) {
            new TFile(el->GetString(), "update");
         }
      }
      else if (fi.fFilename) {
         new TFile(fi.fFilename, "update");
      }

Please give a try and let us know in case of problems.

Thank you, Ilka

Ilka Antcheva wrote:
> Hi Kerry,
>
> This feature is not available yet in TGFileConaines but will come soon because of internal needs to have it. We will keep you informed.
>
> Cheers, Ilka
>
> ________________________________
>
> From: owner-roottalk_at_pcroot.cern.ch on behalf of Lee, Kerry T. (JSC-SF)[UHCL]
> Sent: Sat 3/25/2006 12:36 AM
> To: roottalk_at_pcroot.cern.ch
> Subject: [ROOT] TGFileContainer MultipleSelections
>
>
>
> Dear Rooters,
>
> How do I allow for multiple selections via a mouse click within a TGFileContainer?
>
> Thanks
> Kerry
>
>
>
>
>
Received on Fri Aug 11 2006 - 16:18:24 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET