#include "FiveWin.ch"
#include "WColors.ch"
function Main()
local oDlg, oTree
DEFINE DIALOG oDlg TITLE "TreeView from source"
@ 0.5, 1 TREEVIEW oTree OF oDlg SIZE 80, 60 COLOR 0, GetSysColor( COLOR_WINDOW )
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT AddItems( oTree )
return nil
function AddItems( oTree )
local oItem1, oItem2, oItem3
oItem1 = oTree:Add( "First" )
oItem1:Add( "One" )
oItem1:Add( "Two" )
oItem1:Add( "Three" )
oItem2 = oTree:Add( "Second" )
oItem2:Add( "Hello" )
oItem2:Add( "World" )
oItem3 = oTree:Add( "Third" )
oItem3:Add( "Last" )
oItem3:Add( "item" )
return nil
How do I disable oItem1:Add( "Two" )
Thanks