mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-25 16:09:33 +02:00
customdrawn: dsCommon checkbox background fix
git-svn-id: trunk@33322 -
This commit is contained in:
parent
22cb611d2a
commit
9874a2fe96
@ -459,7 +459,13 @@ begin
|
||||
lSquareHalf := GetMeasures(TCDCHECKBOX_SQUARE_HALF_HEIGHT);
|
||||
lSquareHeight := GetMeasures(TCDCHECKBOX_SQUARE_HEIGHT);
|
||||
|
||||
// the square itself
|
||||
// the square background
|
||||
ADest.Pen.Style := psClear;
|
||||
ADest.Brush.Style := bsSolid;
|
||||
ADest.Brush.Color := Palette.Window;
|
||||
ADest.Rectangle(Bounds(1, lHalf - lSquareHalf, lSquareHeight, lSquareHeight));
|
||||
|
||||
// the square frame
|
||||
DrawSunkenFrame(ADest, Point(1, lHalf - lSquareHalf),
|
||||
Size(lSquareHeight, lSquareHeight));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user