|
Look at
procedure SetStateNewButtons;
you have this
with WizardForm.CancelButton do begin
BtnSetText(CancelBtn,PAnsiChar(WizardForm.CancelBu tton.Caption));
BtnSetVisibility(CancelBtn,Visible);
end;
with WizardForm.CancelButton do begin
BtnSetText(CancelBtn,PAnsiChar(WizardForm.CancelBu tton.Caption));
BtnSetVisibility(CancelBtn,Visible);
end;
look at the bold part,
this procedure gets used each and everytime and it depends on cancel button's visibility
and when you check CurpageChanged procedure under wpInstalling
you have
WizardForm.CancelButton.Hide;
which is why the buttons get's hidden, I think.
Also under CurStepChanged, there is HideControls;
just find a way to deal with those procedure and the button visibility problem will be dealt with.
|