summaryrefslogtreecommitdiff
path: root/test/message.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-10-06 18:21:25 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-10-06 18:21:25 +0000
commitf9039b2ae21988783feae9b362818e7923e82d14 (patch)
tree6d6fe3679d73448758f9794e7d4d4f6b22a4adad /test/message.cxx
parent67e89232f9ba067825a158734a09e0fa21aacbe3 (diff)
Initial revision
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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;
+}