Size of TCustomGrid ButtonStyle cbsButtonColumn isn't correct
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
The size of the drawed Button in a cell is not correct. I've only tested Win7.
Steps to reproduce:
Simple run the attached example
Additional information:
I've asked in the German Lazarusforum of the behavior on other OS without a feedback. Please test the added patch on other platforms before apply. A possible patch can also be:
...
procedure TCustomGrid.DrawButtonCell(const aCol, aRow: Integer; aRect: TRect;
const aState: TGridDrawState);
var
details: TThemedElementDetails;
begin
{$IFDEF MSWINDOWS}
Dec(aRect.Right);
Dec(aRect.Bottom);
{$ELSE}
InflateRect(aRect, -2, 0);
{$ENDIF}
if gdPushed in aState then
...
Mantis conversion info:
- Mantis ID: 27213
- OS: 7
- OS Build: 64bit
- Build: 47221
- Platform: Windows
- Version: 1.3 (SVN)
- Fixed in version: 1.9 (SVN)
- Fixed in revision: 54784 (#ff2d2b0a)
- Target version: 1.8