The following code example demonstrate the use of save_file_dialog dialog.
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Save file dialog example");
save_file_dialog dialog;
dialog.file_name("MyFile.txt");
dialog.filter("Text Files (*.txt)|*.txt;*.md|All Files (*.*)|*.*");
};
label1.parent(*this);
label1.text("File = ");
label1.auto_size(true);
label1.location({10, 40});
}
private:
label label1;
};
int main() {
}
static xtd::ustring get_folder_path(environment::special_folder folder)
Gets the path to the system special folder that is identified by the specified enumeration.
Definition: environment.h:301
@ desktop
The logical Desktop rather than the physical file system location.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17