summaryrefslogtreecommitdiff
path: root/iup/test/dial.led
blob: 8157cb7be999f5e57e466b4b36f246e1870140e6 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
lbl_h = LABEL[SIZE=50x]("0")
lbl_v = LABEL[SIZE=50x]("0")
lbl_c = LABEL[SIZE=50x]("0")

dial_v = DIAL
[
  UNIT=DEGREES,
  MOUSEMOVE_CB="dial_mousemove",
  BUTTON_PRESS_CB="dial_buttonpress",
  BUTTON_RELEASE_CB="dial_buttonrelease"
] ("VERTICAL")

dial_h = DIAL
[
  DENSITY=0.1,
  MOUSEMOVE_CB="dial_mousemove",
  BUTTON_PRESS_CB="dial_buttonpress",
  BUTTON_RELEASE_CB="dial_buttonrelease"
] ("HORIZONTAL")

dial_c = DIAL
[
  UNIT=DEGREES,
  MOUSEMOVE_CB="dial_mousemove",
  BUTTON_PRESS_CB="dial_buttonpress",
  BUTTON_RELEASE_CB="dial_buttonrelease"
] ("CIRCULAR")

dlg = DIALOG[TITLE="IupDial Test"]
(
  VBOX[MARGIN=10x10, GAP=10]
  (
    HBOX[ALIGNMENT=ACENTER]
    (
      dial_v,
      lbl_v
    ),
    HBOX[ALIGNMENT=ACENTER]
    (
      dial_h,
      lbl_h
    ),
    HBOX[ALIGNMENT=ACENTER]
    (
      dial_c,
      lbl_c
    )
  )
)