Inserting file types into DG::FileDialog::Save
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-08-02
10:32 AM
- last edited on
2022-09-29
10:19 AM
by
Daniel Kassai
2019-08-02
10:32 AM
Hi,
I'm trying to insert file types into the selector at the bottom of the save dialog, but as far as I can tell I need the ID number for each file type? Here's what I've got so far:
It seems if I want to add more I need to know the exact ID for each file type. Is there a list anywhere or am I approaching this in the completely wrong way?
Cheers
I'm trying to insert file types into the selector at the bottom of the save dialog, but as far as I can tell I need the ID number for each file type? Here's what I've got so far:
FTM::GeneralID png; png.Load(5); UIndex i = dialog.AddFilter(png); dialog.SetFilterText(i, ".png");
It seems if I want to add more I need to know the exact ID for each file type. Is there a list anywhere or am I approaching this in the completely wrong way?
Cheers
Labels:
- Labels:
-
Add-On (C++)
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-08-06 02:17 PM
2019-08-06
02:17 PM
Take a look at the Communication Manager example project with the dev-kit, specifically the function GetOpenFile in Communication_Manager.cpp . It's adding a type to the 'open' dialog, but the same principle applies to saving.
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-08-08 10:38 AM
2019-08-08
10:38 AM
That worked perfectly. Thanks for the help.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-10-24 01:33 PM
2019-10-24
01:33 PM
rCushing wrote:I tried changing the code in the example to work with Save dialog and it seems to work with the extension (plan) but it crashes when I click save..
That worked perfectly. Thanks for the help.
Could you post your code please?