global functions
show an error message in an alert dialog box
ofFileDialogResult result = ofSystemLoadDialog("Load file");
if(result.bSuccess) {
string path = result.getPath();
// load your file at `path`
}
See also: ofFileDialogResult.
show a file load dialog box
Parameters:
windowTitle optional window title string, ie. "Load background image"
bFolderSelection set to true to allow folder selection
defaultPath optional default directory path to start the dialog in, ie. ofFilePath::getUserHomeDir() \return dialog result with selection (if any)
ofFileDialogResult result = ofSystemSaveDialog("default.jpg", "Save");
if(result.bSuccess) {
string path = result.getPath();
// save your file to `path`
}
See also: ofFileDialogResult.
show a file save dialog box
Parameters:
defaultName suggested filename to start dialog, ie "screenshot.png"
messageName descriptive text for the save action, ie. "Saving screenshot as" \return dialog result with selection (if any)
show a text entry dialog box
Parameters:
question descriptive text for the text entry, ie. "What's your favorite color?"
text optional default text entry string, ie. "blue"
Last updated Tuesday, 19 November 2024 17:26:26 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
openFrameworks is developed and maintained by several voluntary contributors.
Donations help support the development of openFrameworks, improve the documentation and pay for third party services needed for the project.
If you are using openFrameworks commercially or would simply like to support openFrameworks development, please consider donating to the project.
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue