mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
Cocoa: ItemHeight of TListBox/TListCheckBox supported
This commit is contained in:
parent
3b2e3f14ee
commit
bf1b3f3767
@ -152,6 +152,7 @@ begin
|
||||
list.setDataSource(list);
|
||||
list.setDelegate(list);
|
||||
list.setAllowsMultipleSelection(lclCheckListBox.MultiSelect);
|
||||
list.CustomRowHeight:= lclCheckListBox.ItemHeight;
|
||||
list.readOnly := true;
|
||||
//todo:
|
||||
//list.AllowMixedState := TCustomCheckListBox(AWinControl).AllowGrayed;
|
||||
|
@ -2524,6 +2524,7 @@ begin
|
||||
list.setDataSource(list);
|
||||
list.setDelegate(list);
|
||||
list.setAllowsMultipleSelection(lclListBox.MultiSelect);
|
||||
list.CustomRowHeight:= lclListBox.ItemHeight;
|
||||
list.readOnly := true;
|
||||
// LCL ItemHeight for TListBox can only be set during Recreation of Handle
|
||||
if TCustomListBox(AWinControl).ItemHeight>0 then
|
||||
|
Loading…
Reference in New Issue
Block a user