Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-11-2013, 15:33
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,773
Thanks: 2,195
Thanked 11,333 Times in 2,331 Posts
Razor12911 is on a distinguished road
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;

Last edited by Razor12911; 03-11-2013 at 15:44.
The Following User Says Thank You to Razor12911 For This Useful Post:
y_thelastknight (05-11-2013)
Sponsored Links
  #2  
Old 05-11-2013, 11:02
Andre Jesus's Avatar
Andre Jesus Andre Jesus is offline
Registered User
 
Join Date: Jun 2012
Location: Brazil
Posts: 70
Thanks: 11
Thanked 0 Times in 0 Posts
Andre Jesus is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
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
  #3  
Old 05-11-2013, 13:01
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 617
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by Andre Jesus View Post
Thank you very much for your help again.

Attachment 7509
Botva2 sample script.
Replace the shadow png file with yours
Attached Files
File Type: 7z Script.7z (299.5 KB, 27 views)
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -7. The time now is 01:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com