#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/forms/message_box>
#include <xtd/forms/save_file_box>
#include <xtd/environment>
#include <xtd/literals>
class form1 :
public form {
public:
form1() {
text(
"Save file box example");
client_size({400, 200});
controls().push_back(button_save_file);
button_save_file.parent(*this)
.location({10, 10})
.click += [this] {
auto file_name = "MyFile.txt"_s;
};
}
private:
};
auto main() -> int {
}
@ my_documents
The My Documents folder. This member is equivalent to Personal.
Definition environment.hpp:153
static xtd::string get_folder_path(environment::special_folder folder)
Gets the path to the system special folder that is identified by the specified enumeration.
Definition environment.hpp:613
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8