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
  #1321  
Old 23-08-2017, 05:17
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
yener had used A dummy label to use as shadows.
jst top and left property be +1 else everything is same

Code:
procedure UpdateShadow(var Current, Shadow :TLabel);
begin
  if Shadow = nil then
    Shadow := TLabel.Create(WizardForm);
  if Current.Visible and (ShadowTXT >= 0) then begin
    with Shadow do begin
      Caption := Current.Caption;
      Alignment := Current.Alignment;
      AutoSize := Current.Autosize;
      Transparent := Current.Transparent;
      WordWrap := Current.Wordwrap;
      Parent := Current.Parent;
      OnClick := Current.OnClick;
      OnDblClick := Current.OnDblClick;
      OnMouseDown := Current.OnMouseDown;
      OnMouseMove := Current.OnMouseMove;
      OnMouseUp := Current.OnMouseUp;
      Font.Color := ShadowTXT;  
      Font.Size := Current.Font.Size;
      Font.Name := Current.Font.Name;
      Font.Style := Current.Font.Style;
      Visible := Current.Visible;
      Height := Current.Height;
      Width := Current.Width;
      Left := Current.Left + 1;
      Top := Current.Top + 1;
      SendToBack;
    end;
  end else
    Shadow.Hide;
end;
or
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Reply With Quote
The Following 3 Users Say Thank You to Gupta For This Useful Post:
Chayan Manna (27-09-2017), KaktoR (23-08-2017), Kobi Blade (23-08-2017)
Sponsored Links
  #1322  
Old 24-08-2017, 07:17
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Code:
procedure CurPageChanged(CurPageID: integer);
  begin
  case CurPageID of
    wpInstalling: begin
      WizardForm.ClientHeight := (180);
      WizardForm.ClientWidth := (497);
      WizardForm.CancelButton.SetBounds(ScaleX(75), ScaleY(23), ScaleX(412), ScaleY(327));
...
...
I'm not able to move Cancel button on installing page. Anyone knows why?

Also, BackButton just disappears with this

Code:
wpSelectDir: begin
      WizardForm.NextButton.Caption := 'Install';
      WizardForm.BackButton.SetBounds(ScaleX(75), ScaleY(23), ScaleX(242), ScaleY(227));
I have to define these buttons seperatly? I just thought because there are already in "InnoSetup Support" tab.
__________________
Haters gonna hate

Last edited by KaktoR; 24-08-2017 at 07:19.
Reply With Quote
  #1323  
Old 24-08-2017, 08:09
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
if u r using Native controls(Notebooks), then you can't put anything on them unless control is a child
Reply With Quote
The Following User Says Thank You to Gupta For This Useful Post:
KaktoR (24-08-2017)
  #1324  
Old 24-08-2017, 10:22
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Thank you for your help.

Do it a different way then.
__________________
Haters gonna hate
Reply With Quote
  #1325  
Old 25-08-2017, 06:16
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
How i can hide
Code:
wpInfoBefore: begin
      WizardForm.NoStartMenu.Hide; WizardForm.Icons.Hide;
    end;
Unknown identifier

Code:
var
  Icons: TNewCheckBox;
  NoStartMenu: TNewCheckBox;
Code:
NoStartMenu := TNewCheckBox.Create(WizardForm);
  with NoStartMenu do begin
    Parent := WizardForm.InnerPage;
    Left := ScaleX(46);
    Top := ScaleY(224);
    Width := ScaleX(411);
    Height := ScaleY(17);
    Caption := 'Don''t create Start Menu folder';
    OnClick := @NoStartMenuClick;
    Checked := False;
  end;

  Icons := TNewCheckBox.Create(WizardForm);
  with Icons do begin
    Parent := WizardForm.InnerPage;
    Left := ScaleX(46);
    Top := ScaleY(248);
    Width := ScaleX(411);
    Height := ScaleY(17);
    Caption := 'Create {#Name} Desktop Icon';
    Checked := False;
  end;
__________________
Haters gonna hate

Last edited by KaktoR; 25-08-2017 at 06:18.
Reply With Quote
  #1326  
Old 25-08-2017, 06:35
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
NoStartMenu, Icons aren't real members of WizardForm, you added them later on
try
NoStartMenu.Hide; Icons.Hide;
Reply With Quote
The Following User Says Thank You to Gupta For This Useful Post:
KaktoR (25-08-2017)
  #1327  
Old 25-08-2017, 06:50
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
That makes totally sense. THank you, it works

Sometimes i make mistakes like those things.
__________________
Haters gonna hate
Reply With Quote
  #1328  
Old 25-08-2017, 12:09
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Is there a way to resize SelectDirPage? Because i can't deactivate it.

Code:
with WizardForm.SelectDirPage do begin
    Left := ScaleX(1);
    Top := ScaleY(1);
    Width := ScaleX(500);
    Height := ScaleY(364);
  end;
Code:
wpSelectDir: begin
      WizardForm.SelectDirPage.SetBounds(ScaleX(0), ScaleY(0), ScaleX(500), ScaleY(364));
Both doesn't work.

I'm not in the mood to create a whole new page instead.
__________________
Haters gonna hate
Reply With Quote
  #1329  
Old 17-09-2017, 11:12
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Any way to set CheckBox style to default?

CheckBoxes from [Run] and Style (cjstyle/vsf) are different in appearance. I don't like that.
__________________
Haters gonna hate
Reply With Quote
  #1330  
Old 27-01-2018, 08:37
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Using GetIniInt to get required space (mb) digits. But at this point i don't know exactly how to replace it with the SizeMB define properly.

Code:
NeedSpaceLabel.Caption := ExpandConstant('{cm:NeedSpace}  ') + MbOrTb({#SizeMB});
I've tried with {code:RequiredSpace} and it's associated procedure, but get an error when it comes to the page where disk space is called.

Going to change my code to get rid of defines and using GetIniStr and GetIniInt instead. GetIniStr is fine, not a problem.

I hope someony could point me in right direction.
__________________
Haters gonna hate

Last edited by KaktoR; 27-01-2018 at 08:39.
Reply With Quote
  #1331  
Old 27-01-2018, 09:15
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 650
Thanks: 772
Thanked 953 Times in 309 Posts
78372 is on a distinguished road
Maybe I am not understanding the question. Reading from ini and placing in the wizard form doesn't work or what?
__________________
NOT AVAILABLE
Reply With Quote
  #1332  
Old 27-01-2018, 09:38
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Yes, exactly, but only for the one mentioned code tag above.
__________________
Haters gonna hate
Reply With Quote
  #1333  
Old 27-01-2018, 11:28
78372 78372 is offline
Registered User
 
Join Date: Dec 2016
Location: Bangladesh
Posts: 650
Thanks: 772
Thanked 953 Times in 309 Posts
78372 is on a distinguished road
Show code please (you used ISPP code, right?)
__________________
NOT AVAILABLE
Reply With Quote
  #1334  
Old 27-01-2018, 11:53
MARCUS HOLLOWAY MARCUS HOLLOWAY is offline
Registered User
 
Join Date: Apr 2017
Location: NO WHERE
Posts: 3
Thanks: 2
Thanked 1 Time in 1 Post
MARCUS HOLLOWAY is on a distinguished road
Hey KaktoR,
#define SizeMB ReadIni(SourcePath + "\setup.ini", "Application", "Appsize", "")

in setup.ini
[Application]
Appsize=4096
Reply With Quote
  #1335  
Old 27-01-2018, 12:45
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by MARCUS HOLLOWAY View Post
Hey KaktoR,
#define SizeMB ReadIni(SourcePath + "\setup.ini", "Application", "Appsize", "")

in setup.ini
[Application]
Appsize=4096
Ok, didn't know it's possible to read from ini through define. Good to know.

I guess this answeres my question.

Thanks both of you
__________________
Haters gonna hate
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 01:32.


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