mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 19:00:23 +02:00
LCL: Clear variables in TRadioGroup so that OnClick gets fired. Issue #29845, patch from Luca Bertoncini.
git-svn-id: trunk@51955 -
This commit is contained in:
parent
5d75afb30f
commit
1ec8af0aab
@ -28,6 +28,7 @@ type
|
||||
public
|
||||
constructor Create(TheRadioGroup: TCustomRadioGroup);
|
||||
procedure Assign(Source: TPersistent); override;
|
||||
procedure Clear; override;
|
||||
end;
|
||||
|
||||
{ TRadioGroupStringList }
|
||||
@ -56,6 +57,12 @@ begin
|
||||
if SavedIndex < Count then FRadioGroup.ItemIndex := SavedIndex;
|
||||
end;
|
||||
|
||||
procedure TRadioGroupStringList.Clear;
|
||||
begin
|
||||
inherited Clear;
|
||||
FRadioGroup.FLastClickedItemIndex := -1;
|
||||
end;
|
||||
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCustomRadioGroup.Create
|
||||
|
Loading…
Reference in New Issue
Block a user