summaryrefslogtreecommitdiff
path: root/objectio/tut2_4.icl
blob: 3b26c0a5a06f88951203dbc4be8c36d649b90c14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module tut2_4

// ********************************************************************************
// Clean tutorial example program.
//
// This program creates a dialog that displays the "Hello world!" text.
// ********************************************************************************

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 ""
        ( TextControl "Hello world!" []
        )
        [ WindowClose (noLS closeProcess)
        ]