LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
FUNCDEF("GetWindowTextLength", "32u, 32u", "user32")
FUNCDEF("GetWindowText", "32u, 32u, 32u, 32u", "user32")
mytreeitems.1 = 'Parent 1'
mytreeitems.2 = 'Parent 2'
mytreeitems.3 = 'Parent 3'
mytreeitems.1.1 = 'Child 1'
mytreeitems.1.2 = 'Child 2'
mytreeitems.1.2.1 = 'One more'
guicreatewindow('NORMAL')
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION()
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_endlabeledit_mytree:
OPTIONS "MEMPOINT"
guigetctlvalue('MyTree')
amount = getwindowtextlength(edithandle)
buffer = CONVERTDATA(0,"","char[" || amount + 1 || "]", "A")
getwindowtext(edithandle, buffer, amount + 1)
CONVERTDATA(buffer, 'text', amount, '=')
SAY mytree '=' text
RETURN 1
wm_beginlabeledit_mytree:
edithandle = guitreeedit
RETURN |