cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using file dialog to select a folder

Hi,
I would like to use file dialog to get a folder path for saving purposes. I don’t want to use the folder dialog because than I can’t paste a path, and it’s generally less comfortable.
I would like to filter the “files of type” to only folders, not seeing any other types of files.
Adding a picture of the code.
Thanks!
3 Replies 3
Anonymous
Not applicable
+1 for this question
Akos Somorjai
Graphisoft
Graphisoft
Hi,

You have to implement a FileDialogObserver for that dialog, and return false from the IncludeFile callback:
void	OpenNotesObserver::IncludeFile (const DG::FileDialogIncludeFileEvent& /*ev*/, bool* enable)
{
	*enable = false;
}
Best, Akos
Anonymous
Not applicable
Akos wrote:
Hi,

You have to implement a FileDialogObserver for that dialog, and return false from the IncludeFile callback:
void	OpenNotesObserver::IncludeFile (const DG::FileDialogIncludeFileEvent& /*ev*/, bool* enable)
{
	*enable = false;
}

Best, Akos

Hi.
I implement a FileDialogObserver as above. But the method is invalid.
Is there any other method? Thanks.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!