Probleme avec wxFileDialog
Débutant avec wxWidget, je souhaite affichier un répertoire avec wxFileDialog, pour choisir des fichiers, je n'obtiens rien à l'affichage :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
#include "wx/filedlg.h"
...
wxFileDialog dialogue ( BanqueFrm,
wxString = wxT("Sélectionnez un fichier"),
wxString = wxT("F:\\Archivetxt"),
wxString = wxEmptyString,
wxString = wxT ( "*.txt"),
wxString = wxOPEN | wxFD_MULTIPLE);
70 if ( dialogue.ShowModal() == wxID_OK )
{
dialogue.GetPaths( TabFic);
} |
Le compilateur me dit que 'dialogue n'est pas une classe' donc qu'il ny a pas de méthode 'ShowModal()'.
70 " request for member ShowModal in dialogue wich is non-class type wxFileDialog".
???
Problème avec wxFileDialog
Merci, désolé cela ne marche pas.
J ai réussi à afficher la boite de dialogue et à sélectionner un seul fichier avec
Code:
1 2 3
|
if ( dialogue -> ShowModal() == wxID_OK )
{ dialog - > GetPaths ( * TabFic ); } |
Maintenant je cherche à effectuer une sélection multiple.
Je cherche à comprendre pourquoi "dialog -> GetPaths" marche et pas "dialogue.GetPath"
Problème avec wxFileDialog
Merci pour ta réponse.
La variable TabFic était bien un wxArrayString.
En fait la sélection multiple (GetPaths) semblerait se limiter à une série de fichiers consécutifs sélectionnés en une fois, et non pas comme je le croyais à une sélection des fichiers un par un.