Hi All
I have a xbrowse that has more records that can be displayed but the bottom line
of the view looks like a blank record even though there are records below - is there a way
overcome this - so the browse is full of records.
cheers
Colin
oDlg:bStart := { || AdjustBrwHeoght( oBrw ) }
static function AdjustBrwHeoght( oBrw )
local nGap := oBrw:BrwHeight - ( oBrw:nRowHeight * (oBrw:RowCount()) ) - ;
If( oBrw:lHeader, oBrw:nHeaderHeight, 0 ) - ;
If( oBrw:lFooter, oBrw:nFooterHeight, 0 )
if oBrw:lFooter
oBrw:nFooterHeight += Int( nGap / 2 )
nGap -= Int( nGap / 2 )
endif
if oBrw:lHeader
oBrw:nHeaderHeight += nGap
nGap := 0
endif
if nGap > 0
oBrw:nHeight -= nGap
endif
obrw:refresh()
return nil
fraxzi wrote:Dear RAO,
I think it's better if we determine if elements/records are greater than xbrowse can display then use AdjustBrwHeight( oBrw ) otherwise no adjustment since all elements/records are displayed.
Regards,
Frances
nageswaragunupudi wrote:fraxzi wrote:Dear RAO,
I think it's better if we determine if elements/records are greater than xbrowse can display then use AdjustBrwHeight( oBrw ) otherwise no adjustment since all elements/records are displayed.
Regards,
Frances
Yes.
My answer was specific to Mr. Haig's requirement. He said in his case rows were more than the display
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 114 guests