aboutsummaryrefslogtreecommitdiff
path: root/support_check.icl
blob: 032b5de2750b97105d7c1649cd784a0d015fb448 (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
module support_check

import StdEnv, StdIO

Start :: *World -> *World
Start world
# (controlid, world) = openId world 
# checks = [
        CheckControl [("Item &" +++ toString i, Nothing, if (isOdd i) Mark NoMark, id) \\ i <- [1..5]] (Columns 2) [ControlPos (Left, zero), ControlHide],
        CheckControl [("Item &" +++ toString i, Nothing, if (isOdd i) Mark NoMark, id) \\ i <- [1..5]] (Columns 2) [ControlPos (Left, zero), ControlId controlid],
        CheckControl [("Item &" +++ toString i, Nothing, if (isOdd i) Mark NoMark, id) \\ i <- [1..5]] (Columns 2) [ControlPos (Left, zero), ControlSelectState Able],
        CheckControl [("Item &" +++ toString i, Nothing, if (isOdd i) Mark NoMark, id) \\ i <- [1..5]] (Columns 2) [ControlPos (Left, zero), ControlSelectState Unable],
        CheckControl [("Item &" +++ toString i, Nothing, if (isOdd i) Mark NoMark, id) \\ i <- [1..5]] (Columns 2) [ControlPos (Left, zero), ControlTip "Some tip"]
    ]
# controls = ListLS checks
# hello = Dialog "Support - CheckControl" controls [WindowClose (noLS closeProcess)]
= startIO NDI Void (initialise hello) [] world
where
    initialise hello pst
    # (error,pst)       = openDialog 0 hello pst
    | error <> NoError  = closeProcess pst
    | otherwise         = pst