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

Reply
 
Thread Tools Display Modes
  #76  
Old 26-09-2022, 14:24
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: USSR
Posts: 215
Thanks: 261
Thanked 346 Times in 158 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.

Last edited by audiofeel; 06-03-2023 at 07:22.
Reply With Quote
Sponsored Links
  #77  
Old 26-09-2022, 22:02
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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, 271 views)
File Type: png 2.png (27.1 KB, 269 views)
Reply With Quote
The Following User Says Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (26-09-2022)
  #78  
Old 26-09-2022, 22:21
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: USSR
Posts: 215
Thanks: 261
Thanked 346 Times in 158 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, 264 views)
Reply With Quote
  #79  
Old 27-09-2022, 04:11
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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, 262 views)
File Type: png 2.png (15.6 KB, 255 views)

Last edited by BLACKFIRE69; 15-10-2022 at 16:10.
Reply With Quote
The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (27-09-2022), houcine80 (27-09-2022)
  #80  
Old 15-10-2022, 16:09
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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, 276 views)

Last edited by BLACKFIRE69; 26-10-2022 at 13: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)
  #81  
Old 19-10-2022, 13:43
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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, 227 views)
File Type: gif g2.gif (879.3 KB, 221 views)
File Type: gif g3.gif (345.2 KB, 221 views)
File Type: gif g4.gif (343.9 KB, 227 views)
File Type: gif g5.gif (48.1 KB, 230 views)
File Type: gif g6.gif (277.3 KB, 222 views)
File Type: gif g7.gif (158.6 KB, 224 views)
File Type: png 4.png (90.5 KB, 226 views)
File Type: png 10.png (69.0 KB, 225 views)

Last edited by BLACKFIRE69; 26-10-2022 at 13: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)
  #82  
Old 22-10-2022, 12:56
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: USSR
Posts: 215
Thanks: 261
Thanked 346 Times in 158 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, 180 views)
File Type: png 2.png (1.01 MB, 183 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)
  #83  
Old 22-10-2022, 22:14
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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 13: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)
  #84  
Old 23-10-2022, 01:43
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: USSR
Posts: 215
Thanks: 261
Thanked 346 Times in 158 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 01:47.
Reply With Quote
  #85  
Old 23-10-2022, 06:44
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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, 171 views)
File Type: png fl2.png (8.3 KB, 176 views)
File Type: png fl3.png (67.0 KB, 170 views)

Last edited by BLACKFIRE69; 26-10-2022 at 13:13.
Reply With Quote
  #86  
Old 23-10-2022, 14:27
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: USSR
Posts: 215
Thanks: 261
Thanked 346 Times in 158 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

Last edited by audiofeel; 06-03-2023 at 07:24.
Reply With Quote
  #87  
Old 24-10-2022, 01:57
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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, 169 views)
File Type: png 2.png (83.7 KB, 169 views)
File Type: png 3.png (99.2 KB, 168 views)
File Type: png 4.png (97.6 KB, 166 views)
File Type: png 5.png (98.1 KB, 162 views)

Last edited by BLACKFIRE69; 26-10-2022 at 13:22.
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (24-10-2022), ffmla (25-10-2022), Harsh ojha (24-10-2022), Jahan1373 (09-06-2023)
  #88  
Old 26-10-2022, 13:11
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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)
  #89  
Old 06-11-2022, 12:39
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 558
Thanks: 390
Thanked 1,834 Times in 438 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, 124 views)
File Type: png 2.png (93.8 KB, 124 views)
File Type: png xbass_before.png (32.8 KB, 125 views)

Last edited by BLACKFIRE69; 17-11-2022 at 22: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)
  #90  
Old 08-11-2022, 05:29
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: USSR
Posts: 215
Thanks: 261
Thanked 346 Times in 158 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by TEAmo View Post
Can I upload your script? Thank you
If I didn't notice it, I misunderstood. keep the script
https://ibb.co/VDB2v30

Last edited by audiofeel; 06-03-2023 at 07:24.
Reply With Quote
The Following 3 Users Say Thank You to audiofeel For This Useful Post:
ADMIRAL (14-11-2022), BLACKFIRE69 (08-11-2022), Gehrman (08-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 13:04
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
Windows Phone Installer Enhanced Mod (HMI 7.2 Final) Chayan Manna Conversion Tutorials 93 02-10-2019 12:42
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 15:06.


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