summaryrefslogtreecommitdiff
path: root/objectio/hello.icl
diff options
context:
space:
mode:
authorCamil Staps2015-08-08 19:58:36 +0200
committerCamil Staps2015-08-08 19:58:36 +0200
commit062cf91937b0a82254caf27b4e19c23abfeea86d (patch)
tree30096fd5aea8546d85ebec8b95d24708aa08077f /objectio/hello.icl
parentUsing pointers (diff)
ObjectIO tests
Diffstat (limited to 'objectio/hello.icl')
-rw-r--r--objectio/hello.icl17
1 files changed, 17 insertions, 0 deletions
diff --git a/objectio/hello.icl b/objectio/hello.icl
new file mode 100644
index 0000000..1988c6a
--- /dev/null
+++ b/objectio/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" []
+