Graphisoft®

Dialog ManagerVersion: 2.0

FileDialog::SelectFilter

Changes the currently selected filter item.

bool SelectFilter (UIndex index);

Parameters

index
Item index.

Return Value

True if successful.

Description

Can be used to set the default selected filter and also during the active state of the file dialog.

Example

    DG::FileDialog dlg (DG::FileDialog::OpenMultiFile);
    dlg.AddFilterTypeChildren (FTM::RootGroup);
    dlg.SelectFilter (2);
    if (!dlg.Invoke ())
        return false;