FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Is it possible to make more than 1 lines in footer of XBrows
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Is it possible to make more than 1 lines in footer of XBrows
Posted: Sat Jan 16, 2010 05:59 PM
Hi,

I have an array like this. I use XBrowse.

Code (fw): Select all Collapse
aArray := {{"Table",40,"USD"}, {"Pencil",10,"EURO"}, {"Car",100,"TL"}, {"Eraser",20,"USD"}, {"Aaaaaa",30,"USD"}, {"Bbbbbb",40,"EURO"}, {"Ccccc",15,"TL"}}


I want to sum second column in footer. But I need to sum every currency like below. I can sum them. But how can i show in footer.

Total. 90 USD
Total. 50 EURO
Total. 115 TL

Is it possible to show this lines in footer?

Thanks,
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Is it possible to make more than 1 lines in footer of XBrows
Posted: Sun Jan 17, 2010 02:33 AM

oCol:nFooterLines := 3

oCol:cFooter := 'One' + CRLF + 'Two' + CRLF + 'Three'

Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Is it possible to make more than 1 lines in footer of XBrows
Posted: Sun Jan 17, 2010 08:10 AM
Thanks Rao,


oBrw:nFooterLines := 3

line works.



nageswaragunupudi wrote:oCol:nFooterLines := 3

oCol:cFooter := 'One' + CRLF + 'Two' + CRLF + 'Three'
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Is it possible to make more than 1 lines in footer of XBrows
Posted: Tue Jan 19, 2010 12:08 PM

Hi Rao,

It works when I write it before oBrw:CreateFromCode().

Is it possible to change after oBrw:CreateFromCode()? like

oBrw:nFooterLines := 3
oBrw:Refresh()

I tried oBrw:Adjust(), but I did not worked.

Thanks,

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Is it possible to make more than 1 lines in footer of XBrows
Posted: Tue Jan 19, 2010 02:33 PM
The way XBrowse was written, we have to specify this prior to initialization of the Browse. Normally such a situation to modify these parameters should not arise during runtime.

Still there is a way to modify this at runtime:
Code (fw): Select all Collapse
oBrw:nFooterHeight := <increase the height in pixels as necessary>
oCol:nFootStyle       := oCol:DefStyle( oCol:nFootStrAlign, .f. )
oBrw:Refresh()

I suggest it is better to avoid tricking xbrowse like this, but this can be done if necessary to change this at runtime.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Is it possible to make more than 1 lines in footer of XBrows
Posted: Tue Jan 19, 2010 03:36 PM

Thanks Rao,

It works now.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion