The following code example demonstrate the use of folder_browser_dialog dialog.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
using namespace std;
class form1 : public form {
public:
form1() {
text("Folder browser dialog example");
folder_browser_dialog dialog;
dialog.selected_path(selected_path);
selected_path = dialog.selected_path();
label1.text(ustring::format("Path = {}", selected_path));
}
};
label1.parent(*this);
label1.text("Path = ");
label1.auto_size(true);
label1.location({10, 40});
}
private:
label label1;
ustring selected_path;
};
int main() {
application::run(form1());
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17