improved tvoAutoItemHeight

git-svn-id: trunk@4001 -
This commit is contained in:
mattias 2003-04-02 13:37:08 +00:00
parent 02777dd1b5
commit 130452f059

View File

@ -2833,9 +2833,12 @@ begin
if HandleAllocated and (tvoAutoItemHeight in FOptions) then begin
FDefItemHeight:=
Canvas.TextHeight('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789|\()^')
+2 // margin
+2 // border
;
if (Images<>nil) and (Images.Height>FDefItemHeight) then
FDefItemHeight:=Images.Height;
if (StateImages<>nil) and (StateImages.Height>FDefItemHeight) then
FDefItemHeight:=StateImages.Height;
end;
end;