mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:10:25 +02:00
carbon: fixed setting initial ListView Multiselect value. Fixed MakeVisible for listview item. bug #17082
git-svn-id: trunk@27095 -
This commit is contained in:
parent
99e42b0a93
commit
76e6393192
@ -1377,7 +1377,7 @@ end;
|
|||||||
procedure TCarbonDataBrowser.ShowItem(AIndex: Integer; Partial: Boolean);
|
procedure TCarbonDataBrowser.ShowItem(AIndex: Integer; Partial: Boolean);
|
||||||
begin
|
begin
|
||||||
// TODO: partial show
|
// TODO: partial show
|
||||||
OSError(RevealDataBrowserItem(Widget, AIndex, CheckPropertyID,
|
OSError(RevealDataBrowserItem(Widget, AIndex, kDataBrowserNoItem,
|
||||||
kDataBrowserRevealWithoutSelecting), Self, 'ShowItem', 'RevealDataBrowserItem');
|
kDataBrowserRevealWithoutSelecting), Self, 'ShowItem', 'RevealDataBrowserItem');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -266,8 +266,13 @@ end;
|
|||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
class function TCarbonWSCustomListView.CreateHandle(const AWinControl: TWinControl;
|
class function TCarbonWSCustomListView.CreateHandle(const AWinControl: TWinControl;
|
||||||
const AParams: TCreateParams): TLCLIntfHandle;
|
const AParams: TCreateParams): TLCLIntfHandle;
|
||||||
|
var
|
||||||
|
clv : TCarbonListView;
|
||||||
begin
|
begin
|
||||||
Result := TLCLIntfHandle(TCarbonListView.Create(AWinControl, AParams));
|
clv:=TCarbonListView.Create(AWinControl, AParams);
|
||||||
|
Result := TLCLIntfHandle(clv);
|
||||||
|
if Assigned(clv) then
|
||||||
|
clv.SetSelectionMode(True, TListView(AWinControl).MultiSelect);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TCarbonWSCustomListView.ColumnDelete
|
class procedure TCarbonWSCustomListView.ColumnDelete
|
||||||
|
Loading…
Reference in New Issue
Block a user