mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 22:20:17 +02:00
LCL Carbon: TCarbonDataBrowser call focus changed also for item unselect
git-svn-id: trunk@20899 -
This commit is contained in:
parent
277398c12c
commit
46ccb8f263
@ -853,6 +853,7 @@ begin
|
||||
FItemIndex := -1;
|
||||
|
||||
FItemsCheck := TList.Create;
|
||||
FNewSelected := True;
|
||||
|
||||
inherited;
|
||||
end;
|
||||
@ -915,8 +916,13 @@ end;
|
||||
|
||||
procedure TCarbonDataBrowser.SelectionChanged(AIndex: Integer; ASelect: Boolean);
|
||||
begin
|
||||
if ASelect and (AIndex <> FItemIndex) and SetItemIndexQuiet(AIndex) then
|
||||
FocusedChanged(AIndex);
|
||||
if ASelect then
|
||||
begin
|
||||
if (AIndex <> FItemIndex) and SetItemIndexQuiet(AIndex) then
|
||||
FocusedChanged(AIndex);
|
||||
end
|
||||
else
|
||||
FocusedChanged(FItemIndex);
|
||||
end;
|
||||
|
||||
procedure TCarbonDataBrowser.CheckNeedsScrollBars;
|
||||
@ -1259,6 +1265,8 @@ begin
|
||||
OSError(
|
||||
SetDataBrowserSelectionFlags(Widget, Flags),
|
||||
Self, 'SetSelectionMode', 'SetDataBrowserSelectionFlags');
|
||||
|
||||
FNewSelected := True;
|
||||
end;
|
||||
|
||||
procedure TCarbonDataBrowser.SetTopItem(AIndex: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user