mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 18:37:58 +01:00
IDE: Make editor controls in OI short when compiling with UseOICheckBox, revealing redraw problems on Windows. Issue #22347
git-svn-id: trunk@37836 -
This commit is contained in:
parent
7cf9c40478
commit
c877b2f326
@ -2583,6 +2583,17 @@ begin
|
||||
|
||||
if Layout = oilVertical then
|
||||
ValueRect.Left := NameTextRect.Left
|
||||
{$IFDEF UseOICheckBox}
|
||||
{$IFDEF WINDOWS}
|
||||
// Make the edit control short, it reveals redraw problems in many places
|
||||
// on Windows. Normally the long control hides the problems.
|
||||
// Note! This has nothing to do with CheckBox editors directly.
|
||||
// CheckBox only revealed the problem originally because its caption
|
||||
// does not cover all the drawing area.
|
||||
EditCompRect.Right:=EditCompRect.Left+50; // This line can be removed
|
||||
later
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
else
|
||||
begin
|
||||
inc(NameIconRect.Right, 2 + Ord(ShowGutter));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user