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

Reply
 
Thread Tools Display Modes
  #541  
Old 24-09-2023, 13:16
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
If we take your script as a basis and add FComboColorBox activation to it when you activate the FComboColorBox for the first time, it does not appear where it was intended Why??
I think the problem is in the arrangement.
Attached Images
File Type: png Screenshot 2023-09-24 201138.png (374.8 KB, 103 views)
Attached Files
File Type: 7z Thanks Gift 2024.7z (4.17 MB, 13 views)
Reply With Quote
Sponsored Links
  #542  
Old 24-09-2023, 14:46
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
The design is 100 percent complete..
Attached Images
File Type: png Screenshot 2023-09-24 214035.png (20.0 KB, 97 views)
Attached Files
File Type: 7z Thanks Gift 2024.7z (4.03 MB, 12 views)

Last edited by hitman797; 24-09-2023 at 14:50.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (24-09-2023)
  #543  
Old 24-09-2023, 15:02
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 886 Times in 319 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
The design is 100 percent complete..
great job. nerves of steel. there is no completion page. I once did something similar...
__________________
https://t.me/FMXInno

Last edited by audiofeel; 27-12-2023 at 11:06.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (24-09-2023)
  #544  
Old 24-09-2023, 17:00
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
great job. nerves of steel. there is no completion page. I once did something similar...
Thank you @audiofeel, the animation and color has been added.
Attached Images
File Type: png Screenshot 2023-09-24 235233.png (439.2 KB, 100 views)
Attached Files
File Type: 7z Thanks Gift 2024.7z (4.03 MB, 27 views)

Last edited by hitman797; 24-09-2023 at 18:33.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (24-09-2023)
  #545  
Old 24-09-2023, 21:32
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 886 Times in 319 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
Thank you @audiofeel, the animation and color has been added.
gorgeous
__________________
https://t.me/FMXInno
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (24-09-2023)
  #546  
Old 25-09-2023, 13:07
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 886 Times in 319 Posts
audiofeel is on a distinguished road
@BLACKFIRE69
Show an example of how to change the color of objects on the fly, as in the example below? FReactangle(FillColor.Stroke.Color). I can't do it with FColorbox.I can't do it. The color changes if you only touch the object.
Code:
var
  UIColour: array of TAlphaColor = [$B93A4955, $FF202B2F, $FFC0233C];
procedure TForm1.ComboColorBox1Change(Sender: TObject);
var
  I, J: Integer;
begin
  if ComboColorBox1 = Sender then
    J := 0;
  if ComboColorBox2 = Sender then
    J := 1;
  if ComboColorBox3 = Sender then
    J := 2;
  for I := 0 to ComponentCount - 1 do
  begin
    if (Components[I] is TShape) then
    begin
      if TShape(Components[I]).TagString = J.ToString then
        TShape(Components[I]).Fill.Color := TComboColorBox(Sender).Color;
      if TShape(Components[I]).TagString = (J + Length(UIColour)).ToString then
        TShape(Components[I]).Stroke.Color := TComboColorBox(Sender).Color;
    end;
    UIColour[J] := TComboColorBox(Sender).Color;
  end;
end;
__________________
https://t.me/FMXInno

Last edited by audiofeel; 25-09-2023 at 13:09.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (25-09-2023)
  #547  
Old 25-09-2023, 15:37
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
@BLACKFIRE69
Show an example of how to change the color of objects on the fly, as in the example below? FReactangle(FillColor.Stroke.Color). I can't do it with FColorbox.I can't do it. The color changes if you only touch the object.
Code:
var
  UIColour: array of TAlphaColor = [$B93A4955, $FF202B2F, $FFC0233C];
procedure TForm1.ComboColorBox1Change(Sender: TObject);
var
  I, J: Integer;
begin
  if ComboColorBox1 = Sender then
    J := 0;
  if ComboColorBox2 = Sender then
    J := 1;
  if ComboColorBox3 = Sender then
    J := 2;
  for I := 0 to ComponentCount - 1 do
  begin
    if (Components[I] is TShape) then
    begin
      if TShape(Components[I]).TagString = J.ToString then
        TShape(Components[I]).Fill.Color := TComboColorBox(Sender).Color;
      if TShape(Components[I]).TagString = (J + Length(UIColour)).ToString then
        TShape(Components[I]).Stroke.Color := TComboColorBox(Sender).Color;
    end;
    UIColour[J] := TComboColorBox(Sender).Color;
  end;
end;
see this, change the color of objects on the fly.
Code:
FMXColorAnimation[1].StopAtCurrent;
FMXColorAnimation[1].SetColors(FMXComboColorBox[2].GetColor, FMXComboColorBox[1].GetColor);
FMXColorAnimation[1].Start;
Code:
FMXArc[2].StrokeColor(FMXComboColorBox[3].GetColor);
FMXCircle[5].StrokeColor(FMXComboColorBox[3].GetColor);
FMXRectangle[87].FillColor(FMXComboColorBox[3].GetColor);
Attached Images
File Type: png Screenshot 2023-09-25 223350.png (432.1 KB, 82 views)
Attached Files
File Type: 7z Thanks Gift 2024.7z (4.03 MB, 5 views)

Last edited by hitman797; 25-09-2023 at 15:45.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (25-09-2023)
  #548  
Old 25-09-2023, 16:52
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
add Finished Page.
Code:
//FMXTabItem[10].IsSelected(True);
//FMXLabel[12].Text('Start installation');
//FMXLabel[13].Text(#$E184);
FMXTabItem[11].IsSelected(True);
FMXLabel[12].Text('Finished');
FMXLabel[13].Text(#$E10A);
fix FMXRectangle[90]
Code:
FMXRectangle[90].CornerStyle(10, 10, [tcTopLeft, tcTopRight, tcBottomLeft, tcBottomRight], ctRound);
Attached Images
File Type: png Screenshot 2023-09-25 234818.png (282.1 KB, 84 views)
Attached Files
File Type: 7z Thanks Gift 2024.7z (4.03 MB, 4 views)

Last edited by hitman797; 25-09-2023 at 17:24.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (25-09-2023)
  #549  
Old 25-09-2023, 17:27
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
if you change all the ctRound with ctInnerRound.
this what lock like.
Attached Images
File Type: png Screenshot 2023-09-26 001731.png (426.3 KB, 83 views)
File Type: png Screenshot 2023-09-26 002652.png (281.1 KB, 84 views)
File Type: png Screenshot 2023-09-26 002624.png (19.8 KB, 85 views)
Attached Files
File Type: 7z Thanks Gift 2024.7z (4.03 MB, 7 views)
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (25-09-2023)
  #550  
Old 25-09-2023, 22:00
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 886 Times in 319 Posts
audiofeel is on a distinguished road
when the installation really goes into error, the animation of the last page does not seem very successful, but it is better than without it.
__________________
https://t.me/FMXInno

Last edited by audiofeel; 27-12-2023 at 11:06.
Reply With Quote
  #551  
Old 25-09-2023, 22:35
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
when the installation really goes into error, the animation of the last page does not seem very successful, but it is better than without it.
move all the objects in the FMXTabItem[11] to FMXTabItem[4].
Code:
FMXTabItem[11] in FMXLayer3D[2].
FMXTabItem[4] in FMXLayer3D[1].
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (25-09-2023)
  #552  
Old 26-09-2023, 00:30
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 886 Times in 319 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
move all the objects in the FMXTabItem[11] to FMXTabItem[4].
Code:
FMXTabItem[11] in FMXLayer3D[2].
FMXTabItem[4] in FMXLayer3D[1].
I. very interesting, but nothing is clear
-------
II. above in the posts you wrote that you may need to rearrange the procedures and then the ColorBox will appear where necessary. I finally found this place. you need to Align(Right); remove to the end.
-------
III. you need to think something about calculating the size of the components. we are not on the components page. probably do something like that. I don't know...
Code:
procedure TForm1.CheckBox2Click(Sender: TObject);
begin
if TCheckBox(Sender).Checked then  sum3:=sum3+TCheckBox(Sender).Tag/100 else
sum3:=sum3-TCheckBox(Sender).Tag/100;
end;
__________________
https://t.me/FMXInno

Last edited by audiofeel; 27-12-2023 at 11:06.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (26-09-2023)
  #553  
Old 26-09-2023, 09:06
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
I. very interesting, but nothing is clear
-------
II. above in the posts you wrote that you may need to rearrange the procedures and then the ColorBox will appear where necessary. I finally found this place. you need to Align(Right); remove to the end.
-------
III. you need to think something about calculating the size of the components. we are not on the components page. probably do something like that. I don't know...
Code:
procedure TForm1.CheckBox2Click(Sender: TObject);
begin
if TCheckBox(Sender).Checked then  sum3:=sum3+TCheckBox(Sender).Tag/100 else
sum3:=sum3-TCheckBox(Sender).Tag/100;
end;
Code:
[Component0]
Name=Core files
Size=30000

[Component1]
Name=Need For Speed Underground
Size=30000

[Component2]
Name=Need For Speed Underground 2
Size=30000

[Component3]
Name=Need For Speed Most Wanted 05'
Size=30000

[Component4]
Name=Need For Speed Carbon
Size=30000

[Component5]
Name=Need For Speed Pro Street
Size=30000

[Component6]
Name=Need For Speed Undercover
Size=30000

[Component7]
Name=Need For Speed Shift
Size=30000

[Component8]
Name=Need For Speed Hot Pursuit
Size=30000

[Component9]
Name=Need For Speed The Run
Size=30000

[Component10]
Name=Need For Speed Shift 2 Unleashed
Size=30000

[Component10]
Name=Need For Speed Most Wanted 12'
Size=30000

[Component11]
Name=Need For Speed Rivals
Size=30000

[Component12]
Name=Need For Speed 15'
Size=30000
Code:
function GetIniBool(const Section, Key: String; const Default: Boolean; const Filename: String): Boolean;
function GetIniInt(const Section, Key: String; const Default, Min, Max: Longint; const Filename: String): Longint;
function GetIniString(const Section, Key, Default, Filename: String): String;
Reply With Quote
  #554  
Old 26-09-2023, 09:15
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Developer suggestions:
Hi @BLACKFIRE69, can you add this class to FMXInno.
thank you.


Feature of the FMXInno plugin:
  • TMemIniFile = class(TCustomIniFile)
  • MemIniFile:= TMemIniFile.Create('setup.ini');
  • TRegistry = class(TObject)
  • Registry:= TRegistry.Create(KEY_READ);

  • function GetIniString(Section, Key, Default: string; Ini: TMemIniFile): string;
  • function GetIniBoolean(Section, Key: string; Default: Boolean;
  • Ini: TMemIniFile): Boolean;
  • function GetIniFloat(Section, Key: string; Default: Single;
  • Ini: TMemIniFile): Single;
  • function GetIniInteger(Section, Key: string; Default: Integer;
  • Ini: TMemIniFile): Integer;
  • function GetIniColor(Section, Key: string; Default: TAlphaColor;
  • Ini: TMemIniFile): TAlphaColor;
  • procedure SetIniString(Section, Key, Default: string; Ini: TMemIniFile): string;
  • procedure SetIniBoolean(Section, Key: string; Default: Boolean;
  • Ini: TMemIniFile): Boolean;
  • procedure SetIniFloat(Section, Key: string; Default: Single;
  • Ini: TMemIniFile): Single;
  • procedure SetIniInteger(Section, Key: string; Default: Integer;
  • Ini: TMemIniFile): Integer;
  • procedure SetIniColor(Section, Key: string; Default: TAlphaColor;
  • Ini: TMemIniFile): TAlphaColor;

Last edited by hitman797; 26-09-2023 at 09:39.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (26-09-2023)
  #555  
Old 26-09-2023, 12:07
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,433 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
Developer suggestions:
Hi @BLACKFIRE69, can you add this class to FMXInno.
thank you.


Feature of the FMXInno plugin:
  • TMemIniFile = class(TCustomIniFile)
  • MemIniFile:= TMemIniFile.Create('setup.ini');
  • TRegistry = class(TObject)
  • Registry:= TRegistry.Create(KEY_READ);

  • function GetIniString(Section, Key, Default: string; Ini: TMemIniFile): string;
  • function GetIniBoolean(Section, Key: string; Default: Boolean;
  • Ini: TMemIniFile): Boolean;
  • function GetIniFloat(Section, Key: string; Default: Single;
  • Ini: TMemIniFile): Single;
  • function GetIniInteger(Section, Key: string; Default: Integer;
  • Ini: TMemIniFile): Integer;
  • function GetIniColor(Section, Key: string; Default: TAlphaColor;
  • Ini: TMemIniFile): TAlphaColor;
  • procedure SetIniString(Section, Key, Default: string; Ini: TMemIniFile): string;
  • procedure SetIniBoolean(Section, Key: string; Default: Boolean;
  • Ini: TMemIniFile): Boolean;
  • procedure SetIniFloat(Section, Key: string; Default: Single;
  • Ini: TMemIniFile): Single;
  • procedure SetIniInteger(Section, Key: string; Default: Integer;
  • Ini: TMemIniFile): Integer;
  • procedure SetIniColor(Section, Key: string; Default: TAlphaColor;
  • Ini: TMemIniFile): TAlphaColor;


Code:
{ Ini }
function ReadIniStr(const Section, Key, Default, FileName: WideString): WideString;
  external 'ReadIniStr@files:FMXInno.dll stdcall delayload';
function WriteIniStr(const Section, Key, Value, FileName: WideString): Boolean;
  external 'WriteIniStr@files:FMXInno.dll stdcall delayload';


{ ReadReg }
function pReadRegStr(const RootKey: Integer; const Key, Name: WideString; CreateNew: Boolean): WideString;
  external 'pReadRegStr@files:FMXInno.dll stdcall delayload';
function pReadRegInt(const RootKey: Integer; const Key, Name: WideString; CreateNew: Boolean): Integer;
  external 'pReadRegInt@files:FMXInno.dll stdcall delayload';
function pReadRegBool(const RootKey: Integer; const Key, Name: WideString; CreateNew: Boolean): Boolean;
  external 'pReadRegBool@files:FMXInno.dll stdcall delayload';
function pReadRegDouble(const RootKey: Integer; const Key, Name: WideString; CreateNew: Boolean): Double;
  external 'pReadRegDouble@files:FMXInno.dll stdcall delayload';
Reply With Quote
The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post:
Cesar82 (26-09-2023), hitman797 (26-09-2023)
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 Fluent Effects Standalone API - InnoSetup / VCL / FXM BLACKFIRE69 Conversion Tutorials 0 15-11-2023 18:35
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
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:44.


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