
05-11-2013, 10:02
|
 |
Registered User
|
|
Join Date: Jun 2012
Location: Brazil
Posts: 70
Thanks: 11
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Razor12911
Botva2 creates those rounded corners, difficult scripting but there's another easy way of doing it using jpg.
function CreateRoundRectRgn(p1, p2, p3, p4, p5, p6: Integer): THandle; external 'CreateRoundRectRgn@gdi32 stdcall';
function SetWindowRgn(hWnd: HWND; hRgn: THandle; bRedraw: Boolean): Integer; external 'SetWindowRgn@user32 stdcall';
procedure InitializeWizard;
var
FormRegion : tHandle;
begin
WizardForm.BorderStyle := bsNone;
FormRegion := CreateRoundRectRgn(0,0, WizardForm.ClientWidth, WizardForm.ClientHeight, 50, 50);
SetWindowRgn(WizardForm.Handle, FormRegion, True);
end;
|
Thank you very much for your help again.
Capturar.PNG
|