function RusText: boolean;
begin
Result := not IsDoneError and BtnGetChecked(LanguageTextButton[1]);
end;
function EngText: boolean;
begin
Result := not IsDoneError and BtnGetChecked(LanguageTextButton[2]);
end;
procedure SelectLanguageText(hBtn:HWND);
begin
BtnSetChecked(hBtn,True);
if hBtn=LanguageTextButton[1] then begin
BtnSetChecked(LanguageTextButton[2],False);
end else begin
BtnSetChecked(LanguageTextButton[1],False);
end;
end;
procedure LanguageText1LabelClick(Sender:TObject);
begin
BtnSetChecked(LanguageTextButton[1], not BtnGetChecked(LanguageTextButton[1]));
SelectLanguagetext(LanguageTextButton[1]);
end;
procedure LanguageText2LabelClick(Sender:TObject);
begin
BtnSetChecked(LanguageTextButton[2], not BtnGetChecked(LanguageTextButton[2]));
SelectLanguagetext(LanguageTextButton[2]);
end;
. . .
RusTextLabel:= TLabel.Create(WizardForm);
with RusTextLabel do begin
. . .
OnClick := @LanguageText1LabelClick;
Caption:=ExpandConstant('{cm:rus}');
end;
EngTextLabel:= TLabel.Create(WizardForm);
with EngTextLabel do begin
. . .
OnClick := @LanguageText2LabelClick;
Caption:=ExpandConstant('{cm:eng}');
end;