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:
juha 2012-07-01 13:03:44 +00:00
parent 7cf9c40478
commit c877b2f326

View File

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