Using file dialog to select a folder
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-12-26
09:47 AM
- last edited on
2022-09-29
09:51 AM
by
Daniel Kassai
2019-12-26
09:47 AM
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!
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!
Labels:
- Labels:
-
Add-On (C++)
3 REPLIES 3
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-01-06 05:05 PM
2020-01-06
05:05 PM
+1 for this question
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-02-07 04:27 PM
2020-02-07
04:27 PM
Hi,
You have to implement a FileDialogObserver for that dialog, and return false from the IncludeFile callback:
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-03-14 09:14 AM
2020-03-14
09:14 AM
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.