mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 23:39:40 +02:00
IdeIntf: one more tweak for the Boolean Checkbox editor position.
git-svn-id: trunk@47010 -
This commit is contained in:
parent
4f2765f6c2
commit
304f54dde0
@ -3278,13 +3278,13 @@ begin
|
||||
TopMargin := (ARect.Bottom - ARect.Top - Sz.cy) div 2;
|
||||
Inc(BRect.Top, TopMargin);
|
||||
// Left varies by widgetset and theme etc. Real Checkbox itself has a left margin.
|
||||
Inc(BRect.Left, 3); // ToDo: How to find out the real margin?
|
||||
Inc(BRect.Left, 2); // ToDo: How to find out the real margin?
|
||||
BRect.Right := BRect.Left + Sz.cx;
|
||||
BRect.Bottom := BRect.Top + Sz.cy;
|
||||
ThemeServices.DrawElement(ACanvas.Handle, Details, BRect, nil);
|
||||
// Write text after the box
|
||||
BRect := ARect;
|
||||
Inc(BRect.Left, Sz.cx + 5);
|
||||
Inc(BRect.Left, Sz.cx + 4);
|
||||
end;
|
||||
inherited PropDrawValue(ACanvas, BRect, AState);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user