Refresh a TreeView?

BlitzMax Forums/BlitzMax GUI Programming/Refresh a TreeView?

Gotcha, sorry for the confusion. Will look more into it but best fix I can come up with for now which doesn't seem to glitch and shouldn't slow things down but feels a bit like kickin old bill in the ribs:

brl.mod/win32maxgui.mod/win32gui.bmx[783]:
	Method InsertNode:TGadget(index,label$,icon)
		Local	parenthandle,nodehandle
		Local	node:TGadget
		parenthandle=handle
		If class=GADGET_TREEVIEW parenthandle=bbTreeViewRoot(handle)
		nodehandle=bbInsertTreeViewNode(index,Localize(label),parenthandle,icon)
		node=Create(GADGET_NODE,nodehandle,Self)
		node.name=label		
		If handle=parenthandle
			If CountKids()=1 
				bbExpandTreeViewNode handle
				bbCollapseTreeViewNode handle
			EndIf
		EndIf
		Return node
	End Method