customdrawn: dsCommon checkbox background fix

git-svn-id: trunk@33322 -
This commit is contained in:
sekelsenmat 2011-11-05 07:57:56 +00:00
parent 22cb611d2a
commit 9874a2fe96

View File

@ -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));