FWIW, there's an error (*) in FormAPI doc for ts65 and ts67
tst.650a.formapi.pdf page 56 claims that the event handler for onCollapseOrExpand should have signature
handle_collapse(isCollapsed){}
I found that to be
handle_collapse(item, isCollapsed){}
where item:IWItem, isCollapsed:boolean.
(*) just the one, really ;-)