TreeView problem
- Posted by Irv Mullins <irvm at ellijay.com> Apr 16, 2001
- 513 views
This is a multi-part message in MIME format. --Boundary_(ID_JlGF6QVFSX5RjoTD4ohZag) Hi: When I try to retrieve the text from a treeview, I get a Win32Lib error: Error code 428 getitem requested and class not LISTBOX or COMBO I'm using the latest stamped version of Winlib from RDS. Is there a fix for this that I missed? Simple demo attached. Regards, Irv --Boundary_(ID_JlGF6QVFSX5RjoTD4ohZag) Content-type: application/octet-stream; name=tv-test.exw Content-transfer-encoding: quoted-printable Content-disposition: attachment; filename=tv-test.exw -- code generated by Win32Lib IDE v0.10.2 include Win32Lib.ew without warning setWindowBackColor( Window1,12632256) global constant TreeView2 =3D create( TreeView, "TreeView2", Window1, = 28, 32, 150, 200, = or_all({TVS_HASLINES,TVS_LINESATROOT,TVS_HASBUTTONS,TVS_SHOWSELALWAYS}) = ) global constant LText3 =3D create( LText, "LText3", Window1, 204, 36, = 150, 20, 0 ) tree &=3D addTVItem(TreeView2,0,0,"Two",0) =20 end procedure onOpen[Window1] =3D routine_id("Window1_onOpen") setText( LText3,getItem(TreeView2,index)) =20 end procedure onChange[TreeView2] =3D routine_id("TreeView2_onChange") WinMain( Window1, Normal ) --Boundary_(ID_JlGF6QVFSX5RjoTD4ohZag)--