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

Reply
 
Thread Tools Display Modes
  #76  
Old 24-09-2022, 11:22
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
hitman 797. I know that the language call form can no longer be called after initializing the installer. And I didn't think in this direction like Prince Gupta. thanks. but the whole script will have to be redone
this's not a complete example, just use to get an idea.

non-english texts are indicated by texts surrounded by "[r]" for convenience.
(because i'm too lazy to translate every text. )

Code:
[InstallerLangs]
Lang1=Russian
Lang2=English
;Lang3=
;Lang4=
;Lang5=
;Lang6=
Code:
Example:
// LanguageBox
English_LangOkBtn=Ok
English_LanguageTitle=Select Setup Language
English_LanguageMsg=Select the language to use during the installation:

Russian_LangOkBtn=[r]Ok[r]
Russian_LanguageTitle=[r]Select Setup Language[r]
Russian_LanguageMsg=[r]Select the language to use during the installation:[r]

...

download from here : FMXInno_Test.rar

,
Attached Images
File Type: png 1.png (81.5 KB, 225 views)
File Type: png 2.png (79.9 KB, 222 views)

Last edited by BLACKFIRE69; 24-09-2022 at 11:28.
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (24-09-2022), audiofeel (24-09-2022), Harsh ojha (24-10-2022), hitman797 (24-09-2022)
Sponsored Links
  #77  
Old 26-09-2022, 15:24
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: finland
Posts: 41
Thanks: 59
Thanked 62 Times in 17 Posts
audiofeel is on a distinguished road
the image cropped on the right side?

@Blackfire69. Great! the translation works. I share my example. I have a question.... why on "FMXForm.FCreateBlankForm" is the image cropped on the right side?
And I noticed something else. = BorderStyle := bsNone
[SPOILER]
Code:
procedure EmptyWizardForm(const Buttons: Boolean);
begin
  with WizardForm do
  begin
    OuterNotebook.Hide;
    InnerNotebook.Hide;
    if Buttons then
    begin
      NextButton.SetBounds(0,0,0,0);
      CancelButton.SetBounds(0,0,0,0);
      BackButton.SetBounds(0,0,0,0);
      Bevel.SetBounds(0,0,0,0);
    end;
    #ifdef IS_ENHANCED
    Center;
    #endif
    BorderStyle:=Bsnone;
  end;
end;
[/SPOILER]
it doesn't work there. it only works here
[SPOILER]
Code:
procedure InitializeWizard;
begin
  with WizardForm do
	begin
    BorderStyle := bsNone;
    ClientWidth := 800;
    ClientHeight := 450;
 ////////////
end;
is it really necessary or not?
[/SPOILER]
And what do you still think? why is any image on the right side cropped? Thanks.
Attached Files
File Type: 7z setup.7z (4.67 MB, 36 views)

Last edited by audiofeel; 26-09-2022 at 23:11.
Reply With Quote
  #78  
Old 26-09-2022, 23:02
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
Great! the translation works. I share my example. I have a question.... why on "FMXForm.FCreateBlankForm" is the image cropped on the right side?
when you use more than one image as the background image, the dimensions (width,height) of the images should be approximately the same.
but in this case every image is of the same dimension (800x450) so everything works fine.
Attached Images
File Type: png 1.png (15.0 KB, 199 views)
File Type: png 2.png (27.1 KB, 197 views)
Reply With Quote
The Following User Says Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (26-09-2022)
  #79  
Old 26-09-2022, 23:21
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: finland
Posts: 41
Thanks: 59
Thanked 62 Times in 17 Posts
audiofeel is on a distinguished road
here is a more illustrative example

here is a more illustrative example
Attached Images
File Type: png gb.png (396.6 KB, 192 views)
Reply With Quote
  #80  
Old 27-09-2022, 05:11
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
here is a more illustrative example
this isn't an issue with FMXInno. it comes from Delphi itself. so i had to comeup with a fix for this.

this will work...

Code:
with WizardForm do
  begin
    Height := ScaleY(450);
    Width := ScaleX(800);
  end;
Attached Images
File Type: png 1.png (24.9 KB, 191 views)
File Type: png 2.png (15.6 KB, 184 views)

Last edited by BLACKFIRE69; 15-10-2022 at 17:10.
Reply With Quote
The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (27-09-2022), houcine80 (28-09-2022)
  #81  
Old 15-10-2022, 17:09
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno v1.0.0.2 - Updates

FMXInno v1.0.0.2 - Updates

Code:
- Fixed MinimizeFileName function crashing.
- Fixed minor known bugs/issues so far.
- Some improvements.
- Added transparent GIFs support.
Check the first post.

,
Attached Images
File Type: gif 1.gif (1.23 MB, 158 views)

Last edited by BLACKFIRE69; 26-10-2022 at 14:15.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (20-10-2022), audiofeel (15-10-2022), Gehrman (15-10-2022)
  #82  
Old 19-10-2022, 14:43
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInnoSk v1.0.0.0 - Final Release

FMXInnoSk v1.0.0.0 - Final Release


What's new:
Code:
TSkLabel:
 - Single line with multiple styles, colors and sizes.
 - Additional font weights.
 - Control maximum lines.
 - Make words clickable in  text.
 - Custom fonts without installing.

TSkPaintBox:
 - Draw shapes (Rects, RoundRects, Circles, Arcs).
 - Draw Texts (Textblob, SimpleText).
 - Draw Paths (Normal, Discrete, Composed, Sum, Shaders, Fill,
			Rounding sharp corners).
 - Draw Paragraphs (Multi-Styled Texts).
 - Draw Images.
 - Draw 9-Patch (Draw an image preserving corners from strech).

TSkAnimatedPaintBox:
 - Make any shader using SKSL.
 - Runtime effects.
 - Shaders with mouse position.
 - Load Particles (With mouse iterations).

TSkAnimatedImage:
 - Load animations (Lottie, Telegram stickers and Gifs).

TSkImage:
 - Image Encoding (BMP, GIF, ICO, JPEG, PNG, WBMP, WEBP, PKM,
			 KTX, ASTC, DNG, HEIF, AVIF).
 - Make NonTextureImage, RasterImage, MakeShader and RawShader.

TSkSVG:
 - Load .svg files.

Code:
Downloads:
   Shaders	   : Shadertoy
   AnimatedImages  : Lottiefiles
   Stickers	   : Lottiefiles

Preview:
   Preview Shader files   (.sksl)  : Shaders.skia
   Preview Particle files (.json)  : Particles.skia
   Preview AnimatedImages (.json)  : Skottie.skia

Other:
   Create a own shader file (.sksl) : Youtube
   Google Skia                      : skia.org 
   Skia4Delphi                      : skia4delphi.org

Attached Images
File Type: gif g1.gif (988.6 KB, 133 views)
File Type: gif g2.gif (879.3 KB, 133 views)
File Type: gif g3.gif (345.2 KB, 133 views)
File Type: gif g4.gif (343.9 KB, 137 views)
File Type: gif g5.gif (48.1 KB, 143 views)
File Type: gif g6.gif (277.3 KB, 132 views)
File Type: gif g7.gif (158.6 KB, 137 views)
File Type: png 4.png (90.5 KB, 142 views)
File Type: png 10.png (69.0 KB, 137 views)

Last edited by BLACKFIRE69; 26-10-2022 at 14:14.
Reply With Quote
The Following 7 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (20-10-2022), audiofeel (19-10-2022), ffmla (20-10-2022), Harsh ojha (24-10-2022), hitman797 (20-10-2022), houcine80 (23-10-2022), ScOOt3r (19-10-2022)
  #83  
Old 22-10-2022, 13:56
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: finland
Posts: 41
Thanks: 59
Thanked 62 Times in 17 Posts
audiofeel is on a distinguished road
I wanted to upgrade to version 6.2.1

I wanted to upgrade to version 6.2.1. but as it turned out... why the new "inno" adds on Y=4 and on X=8. why I do not know. it all starts with version 6.0.5. I think that fmx.dll it has nothing to do with it. it's about "inno". I think I've tried everything and I know the difference between "clientWidth and "Width" and "WizardStyle=modern". nothing helped. well, in principle, you can somehow calculate it to be more accurate and stretch the image.
Attached Images
File Type: png 1.png (1.70 MB, 113 views)
File Type: png 2.png (1.01 MB, 114 views)
Reply With Quote
The Following 4 Users Say Thank You to audiofeel For This Useful Post:
ADMIRAL (23-10-2022), BLACKFIRE69 (22-10-2022), Gehrman (22-10-2022), ScOOt3r (22-10-2022)
  #84  
Old 22-10-2022, 23:14
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
I wanted to upgrade to version 6.2.1. but as it turned out... why the new "inno" adds on Y=4 and on X=8. why I do not know. it all starts with version 6.0.5. I think that fmx.dll it has nothing to do with it. it's about "inno". I think I've tried everything and I know the difference between "clientWidth and "Width" and "WizardStyle=modern". nothing helped. well, in principle, you can somehow calculate it to be more accurate and stretch the image.

the part that adjusts the dimensions of the image can be done.

i was preparing the last release of version v1.0.0.2. so i'll include the fix with it.
i hope this works. if anything needs to change, be sure to tell me. and thanks for reporting this.


Code:
FMXInno v1.0.0.2 - Last Release

- More Stable.
- More Optimized.
- Fixed Memory Leaks.
- Added File Patching.
  -- procedure wCreateFilePatch(Const fOldFile, fNewFile, fDiffFile: WideString; 
	fMatchLength: Cardinal; fPatchCallback: TFDiffCallback);
  -- procedure wApplyFilePatch(Const fOldFile, fNewFile, fDiffFile: WideString);

Last edited by BLACKFIRE69; 26-10-2022 at 14:14.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (23-10-2022), audiofeel (22-10-2022), houcine80 (23-10-2022)
  #85  
Old 23-10-2022, 02:43
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: finland
Posts: 41
Thanks: 59
Thanked 62 Times in 17 Posts
audiofeel is on a distinguished road
Greetings!
for today, the most buggy will be 1-"FLabel" and 2-"FToggleCheckBox". let's start with "FLabel".
1. very sensitive to the order, that is, if you put "AutoSize" at the beginning, then something else will not be the correct result (other components have better with this or they do not react at all to how you write everything in turn, etc.) "OnClick", "OnMouseDown", "does not work eitheronMouseEnter", "onMouseLeave", "onMouseUp". but there is one fat plus. for "FLabel" it is not necessary to copy OnMouseDown(@MainMouseDown) every time. this already works and the form is dragged with the mouse behind the "FLabel", although this is not spelled out.
2. I did this Shortcut[1].FCreate(Page2.Handle, NSX(40), NSY(250), NSX(32), NSY(14), {#Color}, CustomMessage(WizardLang + 'Page2Shortcut1') + '{#C1[59]}'); and got a full w.pu errors. I remove "+ ' {#C1[59]}'" and everything is fine. this only applies to two translation languages, one is fine.
well, not big quibbles. "LockScreen" is triggered on "MsgForm.HandleHWND", although it is written in the script "LockScreen.AutoActivate([FMXForm.HandleHWND, MsgForm.HandleHWND, LangForm.HandleHWND, DirBrowseDlg.HandleHWND, DirBrowseDlg.HandleHWND2, WizardForm.Handle]);"

Last edited by audiofeel; 23-10-2022 at 02:47.
Reply With Quote
  #86  
Old 23-10-2022, 07:44
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
Greetings!
for today, the most buggy will be 1-"FLabel" and 2-"FToggleCheckBox". let's start with "FLabel".
1. very sensitive to the order, that is, if you put "AutoSize" at the beginning, then something else will not be the correct result
set "WordWrap = false" in "TextSettings".
Code:
  LB1.FCreate(FMXForm.Handle, 'MyShortText');
  LB1.AutoSize(True);
  LB1.top(NSY(100));
  LB1.left(NSX(100));
  LB1.TextSetting(False, txLeading, txCenter);

  LB1.Text('FMXInno: This is a very long text for Testing FLabel AutoSize.');




Quote:
Originally Posted by audiofeel View Post
"OnClick", "OnMouseDown", "does not work eitheronMouseEnter", "onMouseLeave", "onMouseUp". but there is one fat plus. for "FLabel" it is not necessary to copy OnMouseDown(@MainMouseDown) every time. this already works and the form is dragged with the mouse behind the "FLabel", although this is not spelled out.
set "HitTest = True" (captures all mouse events)
Code:
  LB1.FCreate(FMXForm.Handle, 'MyShortText');
  LB1.AutoSize(True);
  LB1.top(NSY(100));
  LB1.left(NSX(100));
  LB1.TextSetting(False, txLeading, txCenter);

  LB1.HitTest(True);
  LB1.OnClick(@LBOnClick);
  LB1.OnMouseEnter(@LBMouseEnter);
  LB1.OnMouseLeave(@LBMouseLeave);
  //LB1.OnMouseDown(@FormMouseDown); (*Set HitTest = False*)

  LB1.Text('FMXInno: This is a very long text for Testing FLabel AutoSize.');
Quote:
"For most controls, HitTest is True by default. However, this is not true for all the controls. For example, for TLabel and TPathLabel, HitTest is False by default;
these two controls do not capture the mouse-related events unless you set HitTest to True.
" - Embarcadero





Quote:
Originally Posted by audiofeel View Post
2. I did this Shortcut[1].FCreate(Page2.Handle, NSX(40), NSY(250), NSX(32), NSY(14), {#Color}, CustomMessage(WizardLang + 'Page2Shortcut1') + '{#C1[59]}'); and got a full w.pu errors. I remove "+ ' {#C1[59]}'" and everything is fine. this only applies to two translation languages, one is fine.
i really want to see your example of this.





Quote:
Originally Posted by audiofeel View Post
well, not big quibbles. "LockScreen" is triggered on "MsgForm.HandleHWND", although it is written in the script "LockScreen.AutoActivate([FMXForm.HandleHWND, MsgForm.HandleHWND, LangForm.HandleHWND, DirBrowseDlg.HandleHWND, DirBrowseDlg.HandleHWND2, WizardForm.Handle]);"
yes. "MsgForm.HandleHWND" returns the wrong handle, i don't know why.
but there's another way.

Code:
procedure ConfirmExitMsg(Sender: TObject);
begin
  LockScreen.AutoActivateEnabled(False);
  MsgForm.Show;
end;

// ...

procedure ExitNoBtnOnClick(Sender: TObject);
begin
  MsgForm.Close;
  LockScreen.AutoActivateEnabled(True);
end;
Attached Images
File Type: png fl1.png (10.3 KB, 103 views)
File Type: png fl2.png (8.3 KB, 109 views)
File Type: png fl3.png (67.0 KB, 105 views)

Last edited by BLACKFIRE69; 26-10-2022 at 14:13.
Reply With Quote
  #87  
Old 23-10-2022, 15:27
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: finland
Posts: 41
Thanks: 59
Thanked 62 Times in 17 Posts
audiofeel is on a distinguished road
FToggle

here's an example. initially, I liked Toggle because it looks more like WP, but I couldn't or didn't want to figure out what the reason for the language selection launch failure was. and that's why I made a mandatory
checkboxes. in the script, I commented everything out and did about as I originally wanted
Attached Files
File Type: 7z toggle.7z (8.78 MB, 22 views)
Reply With Quote
  #88  
Old 24-10-2022, 02:57
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
here's an example. initially, I liked Toggle because it looks more like WP, but I couldn't or didn't want to figure out what the reason for the language selection launch failure was. and that's why I made a mandatory
checkboxes. in the script, I commented everything out and did about as I originally wanted
sorry for the late reply. (i had to participate a webinar)
found out what was going on.
Code:
FText must be of type WideString.

FText: String;  ==>  FText: WideString;
Code:
Toggle CheckBox updated. now the user has more options.

 - Rounded corners (optional)  (FRounded: Boolean).
 - Custom colors.
 - Custom positions for text.
 etc.

replace the old lib and handle.iss files with these.

,
Attached Images
File Type: png 1.png (80.2 KB, 102 views)
File Type: png 2.png (83.7 KB, 100 views)
File Type: png 3.png (99.2 KB, 99 views)
File Type: png 4.png (97.6 KB, 99 views)
File Type: png 5.png (98.1 KB, 94 views)

Last edited by BLACKFIRE69; 26-10-2022 at 14:22.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (24-10-2022), ffmla (25-10-2022), Harsh ojha (24-10-2022)
  #89  
Old 26-10-2022, 14:11
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
well, not big quibbles. "LockScreen" is triggered on "MsgForm.HandleHWND", although it is written in the script "LockScreen.AutoActivate([FMXForm.HandleHWND, MsgForm.HandleHWND, LangForm.HandleHWND, DirBrowseDlg.HandleHWND, DirBrowseDlg.HandleHWND2, WizardForm.Handle]);"
- Fixed CustomFluentWindow handle.
- Fixed EmptyWizardForm.


latest version has been added to the first post...
Reply With Quote
The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (26-10-2022), Cesar82 (26-10-2022), ffmla (26-10-2022), houcine80 (27-10-2022), ScOOt3r (26-10-2022)
  #90  
Old 06-11-2022, 13:39
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 399
Thanks: 304
Thanked 1,229 Times in 288 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno v1.0.0.2

WPI_CorePack - Script Updated!

Code:
- Browse for disks.
- Before/After install:  Run executables or bats, Writing ini and Patching files.

- XBass_f.dll/ XHashNext.dll/ MFT.exe:  Updated, Reduced the file size. 
  (AV no longer pops false positive malware detection on these files.)

- Added wFilePatchLib.dll.
,
Attached Images
File Type: png 1.png (41.9 KB, 55 views)
File Type: png 2.png (93.8 KB, 56 views)
File Type: png xbass_before.png (32.8 KB, 56 views)

Last edited by BLACKFIRE69; 17-11-2022 at 23:32.
Reply With Quote
The Following 6 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (07-11-2022), Gehrman (06-11-2022), Harsh ojha (08-11-2022), houcine80 (06-11-2022), Razor12911 (06-11-2022), ScOOt3r (07-11-2022)
Reply

Thread Tools
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Phone Installer similar to razor12911's original design? Kitsune1982 Conversion Tutorials 0 02-07-2020 14:04
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05
Windows Phone Installer Enhanced Mod (HMI 7.2 Final) Chayan Manna Conversion Tutorials 93 02-10-2019 13:42
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 10:48



All times are GMT -7. The time now is 03:37.


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