Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18-07-2014, 19:57
MMR's Avatar
MMR MMR is offline
Registered User
 
Join Date: Mar 2012
Location: CAIRO - EGYPT
Posts: 8
Thanks: 97
Thanked 2 Times in 2 Posts
MMR is on a distinguished road
Send a message via Yahoo to MMR
Quote:
Originally Posted by Razor12911 View Post
[setup]
defaultdirname={sd}

[code]
procedure DirEditOnChange(Sender:TObject);
begin
WizardForm.DirEdit.Text:=AddBackSlash(ExtractFileD rive(WizardForm.DirEdit.Text));
end;

procedure InitializeWizard;
begin
WizardForm.DirEdit.OnChange:=@DirEditOnChange;
end;
thanks "Razor12911" but thier's error ;
i choose the location "C:\fraps\" but it make new folder automatically :

and if i press ok the location change to "C:\" without any dir then it give me error :

please help if you can .
Reply With Quote
Sponsored Links
  #2  
Old 11-07-2014, 06:20
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
One little question, please help me in you can

i have a botva2 button, this:

Quote:
InstallGame1Btn:=BtnCreate(WizardForm.Handle,55,84 ,15,15,'AutorunMainBtn.png',0,False);
BtnSetEvent(InstallGame1Btn,BtnClickEventID,CallBa ckAddr('InstallGame1BtnClick'));
BtnSetEvent(InstallGame1Btn,BtnMouseEnterEventID,C allBackAddr('BtnEnter'));
BtnSetCursor(InstallGame1Btn,GetSysCursorHandle(32 649));
and i have a label for that button. i want to have the same setbounds in the label that the button, but, and this is the problem, i want if i have to positioning the button in another point of the autorun, move the label at the same position automatly.. i hope you understand my problem.

I want something like this, but with button not work.
SetBounds((InstallGame1Btn.Left + InstallGame1Btn.Width) + 10,0,0,0);

This is the label:
Quote:
InstallGame1Label:=TLabel.Create(WizardForm);
InstallGame1Label.Parent:=WizardForm;
InstallGame1Label.SetBounds(75,84,0,0);
InstallGame1Label.Font.Name:='Verdana';
InstallGame1Label.Font.Style:=[fsBold];
InstallGame1Label.Font.Color:=$C0C0C0; //Light Gray;
InstallGame1Label.Font.Size:=9;
InstallGame1Label.Caption:=ExpandConstant('{#Game1 Name}');
InstallGame1Label.OnMouseDown:=@WFMouseDown;
InstallGame1LabelS:=TLabel.Create(WizardForm);
with InstallGame1LabelS do begin
Parent:=WizardForm;
SetBounds(75+1,84+1,0,0);
Font.Name:='Verdana';
Font.Style:=[fsBold];
Font.Color:=clBlack;
Font.Size:=9;
SendToBack;
Caption:=ExpandConstant('{#Game1Name}');
OnMouseDown:=@WFMouseDown;
end;
Thanks

Edit: anyone know how to make a label color semitransparent?

Last edited by Logrim; 11-07-2014 at 06:38.
Reply With Quote
  #3  
Old 11-07-2014, 16:09
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
One little question, please help me in you can

i have a botva2 button, this:



and i have a label for that button. i want to have the same setbounds in the label that the button, but, and this is the problem, i want if i have to positioning the button in another point of the autorun, move the label at the same position automatly.. i hope you understand my problem.

I want something like this, but with button not work.
SetBounds((InstallGame1Btn.Left + InstallGame1Btn.Width) + 10,0,0,0);

This is the label:


Thanks

Edit: anyone know how to make a label color semitransparent?
these botva2 buttons are longintegers, looks at the functions and the variables, they are longint and longit doesn't have left, nor top and stuff like that but you can get those values by doing this:
var
Pos: TRect;
begin
BtnGetPosition(InstallGame1Btn,Pos.Left,Pos.Top,Po s.Right,Pos.Bottom);
//Right is Width and and Bottom is Height
SetBounds((Pos.Left + Pos.Right) + 10,0,0,0);
end;
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Logrim (11-07-2014)
  #4  
Old 12-07-2014, 09:16
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
One little question, please help me in you can

i have a botva2 button, this:



and i have a label for that button. i want to have the same setbounds in the label that the button, but, and this is the problem, i want if i have to positioning the button in another point of the autorun, move the label at the same position automatly.. i hope you understand my problem.

I want something like this, but with button not work.
SetBounds((InstallGame1Btn.Left + InstallGame1Btn.Width) + 10,0,0,0);

This is the label:


Thanks

Edit: anyone know how to make a label color semitransparent?
semitransparent font color? I don't think it is possible under VCL well maybe it is but is possible in FMX where color is written in this manner $AARRGGBB where the AA is the alpha/transparent color level but in VCL/Inno Ssetup it is something like this $AABBGGRR where AA is normal when it is < 60 but when it is > 60 it is black.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Logrim (13-07-2014)
  #5  
Old 13-07-2014, 00:27
aj12345 aj12345 is offline
Registered User
 
Join Date: Oct 2013
Location: bih
Posts: 29
Thanks: 46
Thanked 3 Times in 3 Posts
aj12345 is on a distinguished road
How to add disk space required and avaible.
Reply With Quote
  #6  
Old 09-09-2014, 06:25
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
i have a question, i'm trying to add wintb to my code, and i can add it without errors, but the taskbar preview not show correctly, my code have mask, and only show in preview the picture, but not the welcome letters or the buttons.. how can i solve it? i hope you can understand my problem.

Last edited by Logrim; 09-09-2014 at 06:29.
Reply With Quote
The Following User Says Thank You to Logrim For This Useful Post:
y_thelastknight (09-09-2014)
  #7  
Old 09-09-2014, 07:36
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
i have a question, i'm trying to add wintb to my code, and i can add it without errors, but the taskbar preview not show correctly, my code have mask, and only show in preview the picture, but not the welcome letters or the buttons.. how can i solve it? i hope you can understand my problem.
it's happening because in task bar shows your "mask" form and not form with text, i have same problem in my Enhanced Installer.
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
y_thelastknight (09-09-2014)
  #8  
Old 09-09-2014, 08:04
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by Logrim View Post
i have a question, i'm trying to add wintb to my code, and i can add it without errors, but the taskbar preview not show correctly, my code have mask, and only show in preview the picture, but not the welcome letters or the buttons.. how can i solve it? i hope you can understand my problem.
what code did you use??

Code:
procedure TaskBarV11(wf: HWND); external 'TaskBarV11@{tmp}\WinTB.dll stdcall delayload';
Code:
TaskBarV11(WizardForm.Handle);
this code work fine for me.
__________________
Glass BB | BlackBox v2 | Portable Installer
Reply With Quote
The Following 2 Users Say Thank You to y_thelastknight For This Useful Post:
Logrim (09-09-2014), pakrat2k2 (09-09-2014)
  #9  
Old 09-09-2014, 10:42
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
bro, can you show me the entire code if is not much? i try a lot of times and only show the mask part in taskbar.. the code it's going to take years lol.. but is almost finished.. only two or three details..
Reply With Quote
  #10  
Old 09-09-2014, 11:17
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by Logrim View Post
bro, can you show me the entire code if is not much? i try a lot of times and only show the mask part in taskbar.. the code it's going to take years lol.. but is almost finished.. only two or three details..
this is my script.
Attached Files
File Type: rar wintb.rar (15.5 KB, 39 views)
__________________
Glass BB | BlackBox v2 | Portable Installer
Reply With Quote
  #11  
Old 09-09-2014, 12:18
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
y_thelastknight the icon on taskbar dissapears with that code :P
Reply With Quote
  #12  
Old 11-09-2014, 11:26
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by Logrim View Post
y_thelastknight the icon on taskbar dissapears with that code :P
not for me.
__________________
Glass BB | BlackBox v2 | Portable Installer
Reply With Quote
  #13  
Old 11-09-2014, 23:40
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
nah, i suposse is for the mask or something... i give up but a lot of thanks bro.

P.D. Sorry moderators if my two last post are a little useeles.
Reply With Quote
  #14  
Old 12-09-2014, 08:10
Grumpy's Avatar
Grumpy Grumpy is offline
Moderator
 
Join Date: Jun 2004
Location: Australia
Posts: 5,695
Thanks: 1,256
Thanked 1,851 Times in 812 Posts
Grumpy is on a distinguished road
Quote:
Originally Posted by Logrim View Post
P.D. Sorry moderators if my two last post are a little useeles.
The Forum is currently having a few Database errors so I can not check which were your last 2 posts but if you are talking about your last 2 posts here in this thread then no they are not useless posts.
This thread is for 'questions' and you asked questions, so all is good.
__________________
Can't find a Game Conversion? Check the 'Conversion INDEX'
Reply With Quote
The Following 2 Users Say Thank You to Grumpy For This Useful Post:
Logrim (12-09-2014), pakrat2k2 (12-09-2014)
  #15  
Old 13-09-2014, 07:04
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 596
Thanks: 599
Thanked 659 Times in 234 Posts
Carldric Clement is on a distinguished road
Who's can fix it?
Here's that file link!
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



All times are GMT -7. The time now is 20:53.


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