fix draw footer rows in rxdbgrid with scrolbars - thx vicvala from freepascal.ru
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2260 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
880197feae
commit
ba32690bfa
@ -2136,7 +2136,14 @@ var
|
|||||||
TxS: TTextStyle;
|
TxS: TTextStyle;
|
||||||
begin
|
begin
|
||||||
TotalWidth := GetClientRect.Right;
|
TotalWidth := GetClientRect.Right;
|
||||||
TotalYOffs := GCache.ClientHeight;
|
// от сель --------------
|
||||||
|
if ScrollBarIsVisible(SB_HORZ) then
|
||||||
|
TotalYOffs := GCache.ClientHeight - (GetSystemMetrics(SM_CYHSCROLL) +
|
||||||
|
GetSystemMetrics(SM_SWSCROLLBARSPACING))
|
||||||
|
else
|
||||||
|
TotalYOffs := GCache.ClientHeight;
|
||||||
|
// до сель --------------
|
||||||
|
// TotalYOffs := GCache.ClientHeight;
|
||||||
FooterRect := Rect(0, TotalYOffs, TotalWidth, TotalYOffs +
|
FooterRect := Rect(0, TotalYOffs, TotalWidth, TotalYOffs +
|
||||||
DefaultRowHeight * FooterRowCount + 2);
|
DefaultRowHeight * FooterRowCount + 2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user