init_fdlog_with_group_name

 

Description

Initialize the LabTalk.FDlog object, used in conjunction with GetFDLogBox

Syntax

bool init_fdlog_with_group_name( LPCSTR lpcszFileExtGroupName, LPCSTR lpcszPath = NULL, LPCSTR lpcszFileName = NULL, LPCSTR lpcszDialogName = NULL )

Parameters

lpcszFileExtGroupName
[input]Pointer to the File Extension Group name.
lpcszPath
[input]Initial path when dialog opens, default NULL uses FDLog tracking
lpcszFileName
[input]Initial filename when dialog opens, default NULL uses an empty string
lpcszDialogName
[input]Title of the dialog box, default NULL uses "Open"

Return

Returns TRUE if succeeded in setting up the LabTalk.FDlog object

Examples

EX1

void init_fdlog_with_group_name_Ex1()
{
        init_fdlog_with_group_name("*.c",NULL,"test","Choose");
        
        StringArray strFiles ;
        
        if(GetFDLogBox(strFiles,FDLOG_TYPE_MULTI_OPEN))
        {
                printf("usr choose File:\n");
                for(int ii=0;ii<strFiles.GetSize();ii++)
                        printf("%s\n",strFiles[ii]);    
        }
        else
          printf("usr click cancel without choosing\n");
}

Remark

See Also

GetFDLogBox

header to Include

origin.h

Reference