aboutsummaryrefslogtreecommitdiff
path: root/support_text.icl
diff options
context:
space:
mode:
authorCamil Staps2015-08-10 15:01:22 +0200
committerCamil Staps2015-08-10 15:01:22 +0200
commit530e77f1be5e866b9fede2d35290725b98f6ce57 (patch)
tree341e71ed28bec2f640d969fb04b5cc47de25a443 /support_text.icl
parentMake target & variable names (diff)
Support check for RadioControl, SliderControl and TextControl
Diffstat (limited to 'support_text.icl')
-rw-r--r--support_text.icl23
1 files changed, 23 insertions, 0 deletions
diff --git a/support_text.icl b/support_text.icl
new file mode 100644
index 0000000..d5e3d01
--- /dev/null
+++ b/support_text.icl
@@ -0,0 +1,23 @@
+module support_text
+
+import StdEnv, StdIO
+
+Start :: *World -> *World
+Start world
+# (id, world) = openId world
+# texts = [
+ TextControl "Hide" [ControlHide],
+ TextControl "Id" [ControlId id],
+ TextControl "Pos" [ControlPos (Left, zero)],
+ TextControl "Tip" [ControlTip "Some tip"],
+ TextControl "Width" [ControlWidth (PixelWidth 500)]
+ ]
+# controls = ListLS texts
+# dialog = Dialog "Support - TextControl" controls [WindowClose (noLS closeProcess)]
+= startIO NDI Void (initialise dialog) [] world
+where
+ initialise dialog pst
+ # (error,pst) = openDialog 0 dialog pst
+ | error <> NoError = closeProcess pst
+ | otherwise = pst
+