procedure CreateWizardForm;
begin
with WizardForm do begin
WizardForm.BorderStyle:=bsNone;
WizardForm.ClientWidth:=465;
WizardForm.ClientHeight:=350;
WizardForm.InnerNotebook.Hide;
WizardForm.OuterNotebook.Hide;
WizardForm.Bevel.Hide;
WizardForm.NextButton.Width:=0;
WizardForm.CancelButton.Width:=0;
end;
Wizard1:=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}')+'\fon.png',0,0,WizardForm.ClientWidth, WizardForm.ClientHeight,True,True);
//fon1:=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}')+'\fon1.png',9,9,601,100,True,True);
//fon2:=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}')+'\fon2.png',5,36,455,279,True,True);
Folder1:=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}')+'\SelectDir.png',30,107,345, 32,True,True);
Folder2:=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}')+'\SelectDir.png',30,187,345, 32,True,True);
OldMinimizeAnimation:=GetMinimizeAnimation;
SetMinimizeAnimation(True);
ImgApplyChanges(WizardForm.Handle);
SetWindowLong2(WizardForm.Handle,-20,GetWindowLong(WizardForm.Handle,-20) or $80000);
SetLayeredWindowAttributes(WizardForm.Handle,$00FF00,0,1);
end;
procedure CreateFrame;
begin
Frame:=TForm.Create(nil);
Frame.BorderStyle:=bsNone;
CreateFormFromImage(Frame.Handle,ExpandConstant('{tmp}\frame.png'));
with TLabel.Create(Frame) do begin
Parent:=Frame;
AutoSize:=False;
Left:=0;
Top:=0;
Width:=Frame.CLientWidth;
Height:=Frame.ClientHeight;
OnMouseDown:=@FrameMouseDown;
end;
WizardForm.Left:=Frame.Left;
WizardForm.Top:=Frame.Top;
WFOldProc:=SetWindowLong(WizardForm.Handle,-4,WndProcCallBack(@WFProc,4));
Frame.Show;
with TLabel.Create(WizardForm) do begin
Parent:=WizardForm;
AutoSize:=False;
Left:=0;
Top:=1;
Transparent:= true;
WordWrap:= true;
Width:=WizardForm.ClientWidth;
Height:=37;
OnMouseDown:=@FrameMouseDown;
Cursor := crHand;
end;
end;
procedure WFDeInit;
begin
Frame.Visible:=False;
WizardForm.Visible:=False;
SetWindowLong(WizardForm.Handle,-4,WFOldProc);
Frame.Free;
end;