mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-23 15:45:54 +02:00
lcl: request checklistbox item height > than check
git-svn-id: trunk@20416 -
This commit is contained in:
parent
7b82b702dd
commit
ffda60f2e0
@ -28,8 +28,8 @@ unit CheckLst;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc, LCLType, GraphType, Graphics, LMessages,
|
Classes, SysUtils, Math, LCLProc, LCLType, GraphType, Graphics, LMessages,
|
||||||
LResources, Controls, StdCtrls;
|
LResources, Controls, StdCtrls, LCLIntf;
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -190,7 +190,7 @@ end;
|
|||||||
procedure TCustomCheckListBox.MeasureItem(Index: Integer; var TheHeight: Integer);
|
procedure TCustomCheckListBox.MeasureItem(Index: Integer; var TheHeight: Integer);
|
||||||
begin
|
begin
|
||||||
if (Style = lbStandard) then
|
if (Style = lbStandard) then
|
||||||
TheHeight := CalculateStandardItemHeight
|
TheHeight := Max(CalculateStandardItemHeight, GetSystemMetrics(SM_CYMENUCHECK) + 2)
|
||||||
else
|
else
|
||||||
inherited MeasureItem(Index, TheHeight);
|
inherited MeasureItem(Index, TheHeight);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user