ide: clip strings in the build lazarus dialog - so they can't overlap each-over (issue #0009791)

git-svn-id: trunk@25909 -
This commit is contained in:
paul 2010-06-05 10:31:43 +00:00
parent 41cf9ca1b8
commit a8458a680e

View File

@ -994,14 +994,14 @@ begin
end; end;
// draw description // draw description
ItemsListBox.Canvas.Brush.Style:=bsClear; ItemsListBox.Canvas.Brush.Style := bsClear;
ItemsListBox.Canvas.TextOut(x+2, ItemsListBox.Canvas.TextRect(Rect(x, ARect.Top, ItemsListBox.ClientWidth - 90, ARect.Bottom), x + 2,
ARect.Top+(ARect.Bottom-ARect.Top-TxtH) div 2, ARect.Top + (ARect.Bottom - ARect.Top - TxtH) div 2,
CurStr); CurStr);
// draw make mode text // draw make mode text
x:=ItemsListBox.ClientWidth-90; x := ItemsListBox.ClientWidth - 90;
ItemsListBox.Canvas.TextOut(x+2, ItemsListBox.Canvas.TextRect(Rect(x, ARect.Top, ItemsListBox.ClientWidth, ARect.Bottom), x + 2,
ARect.Top+(ARect.Bottom-ARect.Top-TxtH) div 2, ARect.Top + (ARect.Bottom - ARect.Top - TxtH) div 2,
GetTranslatedMakeModes(CurItem.MakeMode)); GetTranslatedMakeModes(CurItem.MakeMode));
end; end;