summaryrefslogtreecommitdiff
path: root/iup/test/dial.led
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/test/dial.led
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/test/dial.led')
-rwxr-xr-xiup/test/dial.led49
1 files changed, 49 insertions, 0 deletions
diff --git a/iup/test/dial.led b/iup/test/dial.led
new file mode 100755
index 0000000..8157cb7
--- /dev/null
+++ b/iup/test/dial.led
@@ -0,0 +1,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
+ )
+ )
+)