LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
enc1 = 500
ERROR = guisetctlvalue( "ENC1" )
again:
DO FOREVER
guigetmsg()
IF EXISTS('GuiObject') == 0 THEN DO
IF EXISTS('GuiSignal') THEN DO
END
END
ELSE DO
IF EXISTS('GuiSignal') == 0 THEN DROP (guiobject)
ELSE SELECT guiobject
WHEN 0 THEN NOP
OTHERWISE
END
END
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_select_spin1:
ERROR = guigetctlvalue( "ENC1" )
IF spin1 == -1 THEN
DO
enc1 = enc1 - 25
IF enc1 == 0 THEN enc1 = 1000
END
ELSE DO
enc1 = enc1 + 25
IF enc1 == 1025 THEN enc1 = 25
END
SAY 'SPIN1 is 'spin1
ERROR = guisetctlvalue( "ENC1" )
RETURN |