[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: File Select dialog wouldn't run



Hi,
I suppose it should be

static char* filter[]    = {"*.*", "*.cfg", 0};

otherwise it cannot find the end of the record.

Best regards, Nikolai
    -----Original Message-----
    From: Alexander Gorshenin <alexg@7ka.mipt.ru>
    To: VGUI <vgui-discuss@other.debian.org>
    Date: Tuesday, July 27, 1999 7:13 PM
    Subject: File Select dialog wouldn't run


    i wrote this routine to run FileSelct dialog from my modeless dialog. It
compile well. But click on Browse button (corresponding to btnBrowse) leads
it nowhere.

    How could it be?

    //Case for Browse button
     case btnBrowse:
     {
       static char* filter[] = //File filter
         {
           "*", //All files
           "*.cfg", //Configuration files
         };
       static int filterIndex = 0; //Filter index
       char pathname[50];  //File pathname
       vFileSelect fsel(this); //Instance os FileSelect Dialog

       int oans = fsel.FileSelect("Select configuration file",pathname,49,
       filter,filterIndex);
       break;
     }
     //End Case for Browse button

    Best regards, Alexander Gorshenin, MIPT



Reply to: