nageswaragunupudi wrote:Code: Select all | Expand
#include "fivewin.ch"
function Main()
local aData := { ;
{ "Bari", 43, 103, 11, 69 }, ;
{ "Roma", 53, 117, 21, 57 }, ;
{ "Toino", 70, 60, 55, 34 }, ;
{ "", 0, 0, 0, 0 } }
XBROWSER aData SETUP TITLE "SetColsAsRows" xSetUp( oBrw )
return nil
function xSetUp( oBrw )
local n
oBrw:cHeaders := { "Name", "Num/Rit", "Rit", "Num/Rit", "Rit" }
AEval( oBrw:aCols, { |oCol,i| If( i % 2 = 0, ;
oCol:bClrStd := oCol:bClrSelFocus := { || { CLR_WHITE, CLR_HRED } }, nil ) } )
oBrw:aCols[ 2 ]:SetColsAsRows( 2, 3 )
oBrw:aCols[ 4 ]:SetColsAsRows( 4, 5 )
return nil
Nages ,
I have adata array differently and I was not able to set it as you wrote to me
the first number is the number and the second number is the delay
on old procedure I set
ADD COLUMN TO oBrw HEADER "Ruota" DATA {|v,oCol| oCol:oBrw:aArrayData[oCol:oBrw:nArrayAt,1] } CENTER
ADD COLUMN TO oBrw HEADER "Num" DATA {|v,oCol| oCol:oBrw:aArrayData[oCol:oBrw:nArrayAt,2,1] } CENTER
ADD COLUMN TO oBrw HEADER "Rit" DATA {|v,oCol| oCol:oBrw:aArrayData[oCol:oBrw:nArrayAt,2,2] } CENTER
until
ADD COLUMN TO oBrw HEADER "Num" DATA {|v,oCol| oCol:oBrw:aArrayData[oCol:oBrw:nArrayAt,11,1] } CENTER
ADD COLUMN TO oBrw HEADER "Rit" DATA {|v,oCol| oCol:oBrw:aArrayData[oCol:oBrw:nArrayAt,11,2] } CENTER
then I make set SetGroupHeader
Code: Select all | Expand
:SetGroupHeader( "1", 2, 3 )
:SetGroupHeader( "2", 4, 5 )
:SetGroupHeader( "3", 6, 7 )
:SetGroupHeader( "4", 8, 9 )
:SetGroupHeader( "5", 10, 11 )
:SetGroupHeader( "6", 12, 13 )
:SetGroupHeader( "7", 14, 15 )
:SetGroupHeader( "8", 16, 17 )
:SetGroupHeader( "9", 18, 19 )
:SetGroupHeader( "10", 20, 21 )