Page 1 of 1
xbrowser header
Posted: Mon Sep 30, 2019 9:03 pm
by wartiaga
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!
Re: xbrowser header
Posted: Wed Oct 02, 2019 9:44 am
by Silvio.Falconi
Code: Select all
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
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
Re: xbrowser header
Posted: Wed Oct 02, 2019 11:50 pm
by wartiaga
Silvio.Falconi wrote:Code: Select all
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
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
I will try, thank you!