From d577d991b97ae2b5ee1af23641bcffc3f83af5b2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 4 Nov 2009 11:56:41 -0800 Subject: Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux. --- iup/test/dial.led | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 iup/test/dial.led (limited to 'iup/test/dial.led') 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 + ) + ) +) -- cgit v1.2.3