summaryrefslogtreecommitdiff
path: root/test/message.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/message.cxx')
-rw-r--r--test/message.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/message.cxx b/test/message.cxx
new file mode 100644
index 000000000..1f339320d
--- /dev/null
+++ b/test/message.cxx
@@ -0,0 +1,18 @@
+#include <FL/Fl.H>
+#include <FL/Fl_Window.H>
+#include <FL/fl_ask.H>
+#include <stdio.h>
+
+int main(int, char **) {
+ fl_message("Spelling check sucessfull.");
+ fl_alert("Quantum fluctuations in the space-time continuim detected.");
+ printf("fl_ask returned %d\n",
+ fl_ask("Do you really want to?"));
+ printf("fl_choice returned %d\n",
+ fl_choice("Choose one of the following:","choice0","choice1","choice2"));
+ printf("fl_show_input returned \"%s\"\n",
+ fl_show_input("Please enter a string:", "this is the default value"));
+ printf("fl_password returned \"%s\"\n",
+ fl_password("Enter your password:"));
+ return 0;
+}