View Single Post
  #35  
Old 22-04-2013, 22:00
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
@Pein46

example:

[Code]
var
NewCheckBox: TCheckBox;

procedure WizardFormResizer(Sender: TObject);
begin
if
NewCheckBox.Checked = True then
begin

WizardForm.Width:=NewWizardFormSizeX
WizardForm.Height:=NewWizardFormSizeY
end else begin
WizardForm.Width:=OldWizardFormSizeX
WizardForm.Height:=OldWizardFormSizeY
end;
end;


procedure InitializeWizard;
begin
NewCheckBox:= TCheckBox.Create(WizardForm);
with NewCheckBox do
begin

Parent:= WizardForm.InstallingPage;
Left:= SetPositionX;
Top:= SetPositionY;
Width:= SetSizeX;
Height:= SetSizeY;
Checked:= False;
OnClick:= @WizardFormResizer;
Caption := 'Compact View';
end;
end;


but you'll have to resize progressbar and lables
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Pein46 (22-04-2013)