LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
mytreeitems.1 = 'Parent 1 | 1'
mytreeitems.2 = 'Parent 2 | 1|HIDE'
mytreeitems.3 = 'Parent 3 | 1|HIDE'
mytreeitems.1.1 = 'Child 1 | 2'
mytreeitems.1.2 = 'Child 2 | 2'
mytreeitems.2.1 = 'Child 1 | 2'
mytreeitems.3.1 = 'Child 1 | 2'
guicreatewindow('NORMAL')
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guiimagelist('MyImages', 'FREE')
guidestroywindow()
END
RETURN
wm_initdialog:
var.0 = 2
var.1 = "1_topic"
var.2 = "2_topic"
guiimagelist('MyImages', , 'Var')
guisendmsg('MyTree', 'SETIMAGELIST', , myimages)
RETURN |