|
#1321
|
|||
|
|||
|
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;
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx |
| The Following 3 Users Say Thank You to Gupta For This Useful Post: | ||
| Sponsored Links |
|
#1322
|
||||
|
||||
|
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));
...
...
Also, BackButton just disappears with this Code:
wpSelectDir: begin
WizardForm.NextButton.Caption := 'Install';
WizardForm.BackButton.SetBounds(ScaleX(75), ScaleY(23), ScaleX(242), ScaleY(227));
__________________
Haters gonna hate
Last edited by KaktoR; 24-08-2017 at 07:19. |
|
#1324
|
||||
|
||||
|
Thank you for your help.
Do it a different way then.
__________________
Haters gonna hate
|
|
#1325
|
||||
|
||||
|
How i can hide
Code:
wpInfoBefore: begin
WizardForm.NoStartMenu.Hide; WizardForm.Icons.Hide;
end;
![]() 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. |
|
#1327
|
||||
|
||||
|
That makes totally sense. THank you, it works
![]() Sometimes i make mistakes like those things.
__________________
Haters gonna hate
|
|
#1328
|
||||
|
||||
|
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));
I'm not in the mood to create a whole new page instead.
__________________
Haters gonna hate
|
|
#1329
|
||||
|
||||
|
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
|
|
#1330
|
||||
|
||||
|
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});
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. |
|
#1331
|
|||
|
|||
|
Maybe I am not understanding the question. Reading from ini and placing in the wizard form doesn't work or what?
__________________
NOT AVAILABLE |
|
#1332
|
||||
|
||||
|
Yes, exactly, but only for the one mentioned code tag above.
__________________
Haters gonna hate
|
|
#1333
|
|||
|
|||
|
Show code please (you used ISPP code, right?)
__________________
NOT AVAILABLE |
|
#1334
|
|||
|
|||
|
Hey KaktoR,
#define SizeMB ReadIni(SourcePath + "\setup.ini", "Application", "Appsize", "") in setup.ini [Application] Appsize=4096 |
|
#1335
|
||||
|
||||
|
Quote:
![]() I guess this answeres my question. Thanks both of you
__________________
Haters gonna hate
|
![]() |
|
|
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 |