Changing content in xBrowse/Tree

Changing content in xBrowse/Tree

Postby vilian » Wed Jun 13, 2012 12:37 am

Friends.

I need to change the contents of a cell of the Tree / xBrowse. Can anyone tell me how to do it?


Image
Code: Select all  Expand view
 
REDEFINE XBROWSE oLbx       ID 102 OF oDlg LINES CELL

           oLbx:SetTree( BuildTree(self,oItem), { "FLDOPEN","FOLDER",  "16FRM" } )
           ADD TO oLbx DATA oLbx:oTreeItem:Cargo[ 1 ] HEADER "Conteúdo"

STATIC FUNCTION BuildTree(oRpt,oItem)
LOCAL oTree

   TREE oTree

        _TreeItem( "Item" ):Cargo := { "",0 }
        TREE
           _TreeItem( "Conteúdo" ):Cargo       := { oItem:cCaption,01 }
           _TreeItem( "Tipo" ):Cargo              := { oItem:cTipo   ,02 }
           _TreeItem( "Tamanho" ):Cargo       := { oItem:nTamanho,03 }
           _TreeItem( "Classifica" ):Cargo      := { oItem:lIndex  ,04 }
           _TreeItem( "Quebra" ):Cargo         := { oItem:cQuebra ,05 }
           _TreeItem( "Resume" ):Cargo        := { oItem:lResume ,06 }
           _TreeItem( "Totaliza" ):Cargo       := { oItem:lTotal  ,07 }
        ENDTREE

   ENDTREE

   oTree:Expand()

RETURN oTree
 
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Changing content in xBrowse/Tree

Postby nageswaragunupudi » Wed Jun 13, 2012 4:04 pm

oBrw:oTreeItem:Cargo[ 1 ] := <newvalue>
oBrw:RefreshCurrent()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests