xbrowse tree Help

xbrowse tree Help

Postby Silvio.Falconi » Sun Jan 15, 2017 4:09 pm

I have abn dbf with two fields ( I must use this dbf for dewey catalog of Book )

dewey Cr 8
DEWDESCR cr 60

on dewey field I have a code sample 333.79 as you can see on this picture

Image


the master category must be

000 Generalità
100 Filosofia e psicologia
200 Religione
300 Scienze sociali
400 Linguaggio
500 Scienze naturali e matematica
600 Tecnologia (Scienze applicate)
700 Le arti
800 Letteratura e retorica
900 Geografia e storia

how I can to create a xbrowse tree please

I tried this small test but not run
Code: Select all  Expand view
#include "fivewin.ch"
#include "xbrowse.ch"

REQUEST DBFCDX

function main()

   local oDlg, oFont, oBrw
   local oTree


   oTree    := MakeTree()

   DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
   DEFINE DIALOG oDlg SIZE 350,500 PIXEL FONT oFont

   @ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
      DATASOURCE oTree CELL LINES NOBORDER

   oBrw:aCols[ 1 ]:AddBitmap( { FWDArrow(), FwRArrow(), "c:\fwh\bitmaps\16x16\new2.bmp" } )
   oBrw:nStretchCol  := 1
   oBrw:CreateFromCode()

   ACTIVATE DIALOG oDlg CENTERED
   RELEASE FONT oFont

   oTree:End()

return nil

static function MakeTree

   field DEWEY,DEWDESCR
   local oTree, n

   USE DEWEY NEW SHARED
   INDEX ON upper(DEWEY) TAG DEWEY TO TMP MEMORY
   GO TOP

   TREE oTree
      do while ! eof()
         n     := DEWEY
         TREEITEM (n)+" - "+DEWDESCR
         TREE
            do while DEWEY = n .and. ! eof()
               TREEITEM DEWDESCR
               SKIP
            enddo
        ENDTREE
      enddo
   ENDTREE

   oTree:OpenAll()

return oTree




 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: xbrowse tree Help

Postby Silvio.Falconi » Mon Jan 16, 2017 10:32 am

any solution please ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: xbrowse tree Help

Postby Silvio.Falconi » Tue Jan 17, 2017 6:50 pm

pls Mr Nages can you help me . thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: xbrowse tree Help

Postby nageswaragunupudi » Wed Jan 18, 2017 2:14 pm

Mr Silvio
Please wait

But I remember providing solutions to you on similar requirements earlier too in the forums.
I will provide solution now also, but please wait.
Regards

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

Re: xbrowse tree Help

Postby Silvio.Falconi » Sun Jan 22, 2017 8:02 pm

Sorry Mr Rao But I not remember it

I used that archive with tree normal (not fwh)
on fwh tre I have some problems and I decide to use xbrowse to show it because there are many records into
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 106 guests