aboutsummaryrefslogtreecommitdiff
path: root/hello.icl
diff options
context:
space:
mode:
authorCamil Staps2015-08-08 19:58:36 +0200
committerCamil Staps2015-08-08 19:58:36 +0200
commitd075b4831a10db83840c5e2fd11fb2b59722adfc (patch)
tree20f7d14c8318b7e09e982e8f2ca8b8722afb8348 /hello.icl
ObjectIO tests
Diffstat (limited to 'hello.icl')
-rw-r--r--hello.icl17
1 files changed, 17 insertions, 0 deletions
diff --git a/hello.icl b/hello.icl
new file mode 100644
index 0000000..1988c6a
--- /dev/null
+++ b/hello.icl
@@ -0,0 +1,17 @@
+module hello
+
+import StdEnv, StdIO
+
+Start :: *World -> *World
+Start world = startIO NDI Void initialise [] world
+where
+ initialise pst
+ # (error,pst) = openDialog Void hello pst
+ | error <> NoError = closeProcess pst
+ | otherwise = pst
+
+ hello = Dialog "ObjectIO" controls [WindowClose (noLS closeProcess)]
+ controls = TextControl "Hello World!" [] :+:
+ TextControl "Text 2" [] :+:
+ ButtonControl "Button" []
+