How can I define a super header? (SOLVED)

How can I define a super header? (SOLVED)

Postby Armando » Thu Aug 09, 2018 2:08 pm

Hi Friends:

In the following source code, how can I define a super header?

Code: Select all  Expand view  RUN

            REDEFINE XBROWSE oBrw ID 200 OF oDlg;
                DATASOURCE oRsHdr ;
                COLUMNS "HDR_FOL","Date2Text(HDR_FDV)","HDR_TOU","HDR_TOV","HDR_TOU","HDR_TOV","HDR_CAN";
                HEADERS "Folio","Fecha","Cantidad","Importe","Cantidad","Importe","Can";
                COLSIZES 65,80,110,110,110,110;
                PICTURES "@Z 9999999",NIL,"@Z 9,999,999.999","@Z 999,999,999.99","@Z 9,999,999.999","@Z 999,999,999.99",NIL;
                JUSTIFY {AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_CENTER};
                FOOTERS AUTOSORT BACKGROUND "Lineas"

                WITH OBJECT oBrw
                    :l2007            := (.F.)
                    :lHScroll         := (.F.)
                    :lVScroll         := (.F.)
                    :nMarqueeStyle    := MARQSTYLE_HIGHLROW
                    :nColDividerStyle := LINESTYLE_LIGHTGRAY
                    :nRowDividerStyle := LINESTYLE_LIGHTGRAY
                    :nHeaderHeight      := 25
                    :nRowHeight         := 22
                    :nFooterHeight      := 25
                    :bClrHeader       := { || {CLR_WHITE,CLR_BLACK} }
                    :bClrFooter       := { || {CLR_WHITE,CLR_BLACK} }
                    :bClrSel          := { || IF( oBrw:KeyNo % oApp:nRowsInt == 0 ,{ CLR_BLACK, oApp:nRowParClr },{ CLR_BLACK, oApp:nRowNonClr }) }
                    :bClrSelFocus     := { || {oApp:nFClrFocus,oApp:nBClrFocus} }
                    :bClrStd          := { || IF( oBrw:KeyNo % oApp:nRowsInt == 0 ,{ CLR_BLACK, oApp:nRowParClr },{ CLR_BLACK, oApp:nRowNonClr }) }
                    :nRecSelColor     := oApp:nRowParClr
                    :lDisplayZeros    := (.F.)   // zero values are not displayed. Added by GNRao. No need to use @Z
                    :blDblClick         := { | nRow, nCol, nKey | (Editar(oBrw,(.F.)),oBrw:SetFocus())}
                    :bKeyDown           := { | nKey, nFlags | IIF(nKey == VK_RETURN,(Editar(oBrw,(.F.)),oBrw:SetFocus()),)}

                    WITH OBJECT :aCols[01]
                        :cOrder := "A"
                    END

                    WITH OBJECT :aCols[05]
                        :SetCheck( { "SI16","NO16" } )
                    END
                END
 


Regards
Last edited by Armando on Thu Aug 09, 2018 5:35 pm, edited 1 time in total.
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3231
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: How can I define a super header?

Postby nageswaragunupudi » Thu Aug 09, 2018 3:35 pm

oBrw:SetGroupHeader( <cGrpHeaderName>, nFromCol, nLastCol )
Regards

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

Re: How can I define a super header?

Postby Armando » Thu Aug 09, 2018 5:34 pm

Mr. Rao:

Thank so much.

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3231
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests