IonicWind Snippit Manager 2.xx Released! Install it on a memory stick and take it with you! With or without IWBasic!
Started by Brian, July 11, 2019, 11:30:14 am
0 Members and 1 Guest are viewing this topic.
CONST TREEVIEW_1 = 1WINDOW w1OPENWINDOW w1,0,0,600,400,@MINBOX|@MAXBOX|@SIZE,NULL,"Simple Window",&w1_handlerINT tvStyles = @TVSHASBUTTONS | @TVSHASLINES | @TVSLINESATROOT | @TVSSHOWSELALWAYS | @BORDERCONTROL w1,@TREEVIEW,"Static",29,17,314,258,tvStyles,TREEVIEW_1OnInit()' main loopWAITUNTIL w1 = 0END ' window procedureSUB w1_handler(), INT SELECT @MESSAGE CASE @IDCREATE CENTERWINDOW w1 CASE @IDCLOSEWINDOW CLOSEWINDOW w1 ENDSELECT RETURN 0ENDSUBSUB OnInit() INT root = tvInsertItem(w1, TREEVIEW_1, "Root", 0) INT first = tvInsertItem(w1, TREEVIEW_1, "First", root) INT second = tvInsertItem(w1, TREEVIEW_1, "Second", root) tvSelectItem(w1, TREEVIEW_1, first) ' first should always be selected due to @TVSSHOWSELALWAYSENDSUB