Macaw OS C reference

Module Dialogs

#include <macawui.h>

Dialogs don't pause your program. Each calls a function of yours when the person answers, and doesn't call it if they cancel. Text it's given lasts only for that call, so copy it to keep it.

Functions

alert
Shows a message with an OK button.
confirm
Asks a question with OK and Cancel buttons.
askstring
Asks the person to type some text.
openfile
Shows the Open dialog, for the person to pick a file.
savefile
Shows the Save dialog, for the person to choose a name and a folder.
pickcolour
Shows the colour picker, for picking any colour.