xbrowser header

xbrowser header

Postby wartiaga » Mon Sep 30, 2019 9:03 pm

Hi,

I have a xbrowse with a empty array.

When i put some elements in array and I do oBrw:SetArray(VetDup) my headers change to A, B, C , D, E.

What I do wrong?

Thanks!
wartiaga
 
Posts: 210
Joined: Wed May 25, 2016 1:04 am

Re: xbrowser header

Postby Silvio.Falconi » Wed Oct 02, 2019 9:44 am

Code: Select all  Expand view
function TestMain()

   local oWnd, oBar, oBrw

   DEFINE WINDOW oWnd TITLE "Arrays"

@ 0,0 XBROWSE oBrw OF oWnd               ;
      COLUMNS 1, 2, 3, 4                    ;
      HEADERS "a","b","tc","d"   ;
      COLSIZES 100, 100, 100, 100           ;
      ARRAY {} LINES FASTEDIT CELL


WITH OBJECT oBrw
        :CreateFromCode()
   END

 oWnd:oClient := oBrw

   ACTIVATE WINDOW oWnd

return nil


or easy

Code: Select all  Expand view
LOCAL aFiles   := {}

@ 30, 10 XBROWSE  oLbx OF oDlg ;
      SIZE 185,100 PIXEL


    oLbx:SetArray(aFiles)

   oLbx:aCols[1]:cHeader  := i18n("Archivio")
   oLbx:aCols[1]:nWidth   := 110

   oLbx:aCols[2]:cHeader  := i18n("Dimensione")
   oLbx:aCols[2]:nWidth   := 100

  WITH OBJECT  oLbx
                   :CreateFromCode()
                  END
 


here run good

Image
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: xbrowser header

Postby wartiaga » Wed Oct 02, 2019 11:50 pm

Silvio.Falconi wrote:
Code: Select all  Expand view
function TestMain()

   local oWnd, oBar, oBrw

   DEFINE WINDOW oWnd TITLE "Arrays"

@ 0,0 XBROWSE oBrw OF oWnd               ;
      COLUMNS 1, 2, 3, 4                    ;
      HEADERS "a","b","tc","d"   ;
      COLSIZES 100, 100, 100, 100           ;
      ARRAY {} LINES FASTEDIT CELL


WITH OBJECT oBrw
        :CreateFromCode()
   END

 oWnd:oClient := oBrw

   ACTIVATE WINDOW oWnd

return nil


or easy

Code: Select all  Expand view
LOCAL aFiles   := {}

@ 30, 10 XBROWSE  oLbx OF oDlg ;
      SIZE 185,100 PIXEL


    oLbx:SetArray(aFiles)

   oLbx:aCols[1]:cHeader  := i18n("Archivio")
   oLbx:aCols[1]:nWidth   := 110

   oLbx:aCols[2]:cHeader  := i18n("Dimensione")
   oLbx:aCols[2]:nWidth   := 100

  WITH OBJECT  oLbx
                   :CreateFromCode()
                  END
 


here run good

Image


I will try, thank you!
wartiaga
 
Posts: 210
Joined: Wed May 25, 2016 1:04 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 39 guests