mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:19:37 +02:00
IDE: removed obsolete workaround for not working TRadioButton.Checked from Paul
git-svn-id: trunk@12544 -
This commit is contained in:
parent
9f455244c8
commit
f61657314b
@ -285,7 +285,6 @@ type
|
|||||||
DockedRadioButton: TRadioButton;
|
DockedRadioButton: TRadioButton;
|
||||||
ApplyButton: TButton;
|
ApplyButton: TButton;
|
||||||
GetWindowPositionButton: TButton;
|
GetWindowPositionButton: TButton;
|
||||||
procedure RadioButtonClick(Sender: TObject);
|
|
||||||
procedure ApplyButtonClick(Sender: TObject);
|
procedure ApplyButtonClick(Sender: TObject);
|
||||||
procedure GetWindowPositionButtonClick(Sender: TObject);
|
procedure GetWindowPositionButtonClick(Sender: TObject);
|
||||||
private
|
private
|
||||||
@ -909,7 +908,6 @@ begin
|
|||||||
Top := 6
|
Top := 6
|
||||||
else
|
else
|
||||||
AnchorToNeighbour(akTop,6,PreviousButton);
|
AnchorToNeighbour(akTop,6,PreviousButton);
|
||||||
OnClick:=@RadioButtonClick;
|
|
||||||
Caption:=GetRadioBtnCaptions(APlacement);
|
Caption:=GetRadioBtnCaptions(APlacement);
|
||||||
Checked:=(APlacement=ALayout.WindowPlacement);
|
Checked:=(APlacement=ALayout.WindowPlacement);
|
||||||
end;
|
end;
|
||||||
@ -1009,21 +1007,6 @@ begin
|
|||||||
fUpdateRadioButtons:=false;
|
fUpdateRadioButtons:=false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIDEWindowSetupLayoutComponent.RadioButtonClick(Sender: TObject);
|
|
||||||
var APlacement: TIDEWindowPlacement;
|
|
||||||
ARadioButton: TRadioButton;
|
|
||||||
begin
|
|
||||||
if fUpdateRadioButtons then exit;
|
|
||||||
fUpdateRadioButtons:=true;
|
|
||||||
for APlacement:=Low(TIDEWindowPlacement) to High(TIDEWindowPlacement) do
|
|
||||||
begin
|
|
||||||
ARadioButton:=GetPlacementRadioButtons(APlacement);
|
|
||||||
if ARadioButton<>nil then
|
|
||||||
ARadioButton.Checked:=(ARadioButton=Sender);
|
|
||||||
end;
|
|
||||||
fUpdateRadioButtons:=false;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TIDEWindowSetupLayoutComponent.GetPlacementRadioButtons(
|
function TIDEWindowSetupLayoutComponent.GetPlacementRadioButtons(
|
||||||
APlacement: TIDEWindowPlacement): TRadioButton;
|
APlacement: TIDEWindowPlacement): TRadioButton;
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user