1. setTVINDEX addition to win32lib
- Posted by jordah ferguson <jorfergie03 at yahoo.com> Jun 24, 2002
- 408 views
Hi Derek, I don't know if other debuggers have reported this but setTVIndex() is missing, setIndex doesn't include TreeView Support. Here is SetTVIndex, Derek, Most People always expect this procedure to work (Visually) when the tree view has no focus. it won't display the selected rectangle unless TVS_SHOWSELALWAYS style flag is specified, So please make sure you add this to the Documentation. Here you go, --Start: Jordah Ferguson global procedure setTVIndex(atom tv,integer pos) atom void if pos>0 and pos<=length(tvitem_handle) then void = sendMessage(tv,TVM_SELECTITEM,TVGN_CARET,tvitem_handle[pos]) end if end procedure --End: Jordah Ferguson Cheers, Jordah Ferguson aka Sir LoJiK