View Single Post
  #42  
Old 23-04-2013, 01:50
Pein46's Avatar
Pein46 Pein46 is offline
Registered User
 
Join Date: Feb 2013
Location: Malaysia
Posts: 27
Thanks: 12
Thanked 8 Times in 7 Posts
Pein46 is on a distinguished road
@Razor12911

Quote:
[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;
I'm still didn't know how to resize progressbar and lables..
can you?.. please..
This is my script..

Last edited by Pein46; 23-04-2013 at 02:09.
Reply With Quote