OPTIONS "C_CALL LABELCHECK NOSOURCE"
LIBRARY rexxgui
DO
FUNCDEF("MINMAXINFO", "32,32,32,32,32,32,32,32,32,32")
CATCH FAILURE
CONDITION("M")
RETURN
END
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
guigetctlplacement("MyList", "MyList.1", "MyList.2", "MyList.3", "MyList.4")
guigetctlplacement("MyEntry", "MyEntry.1", "MyEntry.2", "MyEntry.3", "MyEntry.4")
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_getminmaxinfo:
CONVERTDATA(ARG(2), "MinMax", "struct MINMAXINFO")
minmax.7 = 275
minmax.8 = 200
CONVERTDATA(ARG(2), "MinMax", "struct MINMAXINFO", 'FROM')
RETURN ""
wm_size:
IF EXISTS("MYENTRY.3") THEN DO
guisetctlplacement("MyEntry", , , ARG(3) - myentry.1 - 5, myentry.4)
guisetctlplacement("MyList", , , ARG(3) - mylist.1 - 5, ARG(4) - mylist.2 - 4)
END
RETURN "" |