LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
testenabletestitem:
guisetmenuopts("Test1Item", "")
RETURN
testdisabletestitem:
guisetmenuopts("Test1Item", "GRAY")
RETURN
testsetmarkitem_scheck:
guisetmenuopts("Mark1Item", "MARK")
RETURN
testclearmarkitem_scheck:
guisetmenuopts("Mark1Item", "")
RETURN
test2toggletestitemon_off:
guigetmenuopts("Test2Item", "MyVariable")
IF POS("GRAY", myvariable) \== 0 | POS("DISABLE", myvariable) \== 0 THEN DO
myvariable = CHANGESTR("GRAY", myvariable)
myvariable = CHANGESTR("DISABLE", myvariable)
guisetmenuopts("Test2Item", myvariable)
END
ELSE guisetmenuopts("Test2Item", myvariable || "|GRAY")
RETURN
test2togglemarkitem_scheck:
guigetmenuopts("Mark2Item", "MyVariable")
IF POS("MARK", myvariable) \== 0 THEN DO
myvariable = CHANGESTR("MARK", myvariable)
guisetmenuopts("Mark2Item", myvariable)
END
ELSE guisetmenuopts("Mark2Item", myvariable || "|MARK")
RETURN |