|
#526
|
|||
|
|||
|
Common Code to extract Data/Component Files
Declare a global variable DiskSkip in the top
Code:
var DiskSkip: Boolean; Code:
procedure CurStepChanged(CurStep: TSetupStep);
var
i: Integer;
begin
DiskSkip:= False;
if CurStep = ssInstall then begin
ISArcExCancel := 0;
ISArcExDiskCount := 0;
ISArcDiskAddingSuccess := False;
ISArcExError := True;
#include "Game/UnpackTools_Init.iss"
{ - ADDING DISKS: BEGIN -}
repeat
{< Main Archives >}
#ifdef Data1
VerifyFileExist('Data-01.bin');
if DiskSkip then break;
#endif
#ifdef Data2
VerifyFileExist('Data-02.bin');
if DiskSkip then break;
#endif
{< Components >}
#ifdef Component1
if Checkbox[8].ISChecked then
VerifyFileExist('selective-english.bin');
#endif
#ifdef Component2
if Checkbox[9].ISChecked then
VerifyFileExist('selective-bonus.bin');
#endif
until true;
{ - ADDING DISKS: END -}
ISArcExStop;
if ISArcExError then
ShowMessage('Installation was interrupted', 'Either the installation has been cancelled by the user,' +#13+ 'or the files are corrupted.');
end else if not (ISArcDiskAddingSuccess) and (DiskSkip) then
ShowMessage('Installation is corrupted', 'Required disks could not be located.');
Common procedure to handle all Data files Code:
procedure VerifyFileExist(FilePath: WideString);
var
sPath, sFile: WideString;
sExt: String;
begin
sPAth := AddBackslash(ExpandConstant('{src}'));
if FileExists(sPAth + FilePath) then begin
ISArcDiskAddingSuccess:= ISArcExAddDisks(sPAth + FilePath, '{#DiskPassword}', ExpandConstant('{app}'));
if not ISArcDiskAddingSuccess then begin
DiskSkip:= True;
Exit;
end;
ISArcExDiskCount := ISArcExDiskCount + 1;
end else
begin
ShowMessage('Setup Needs the Next Disk', 'Please browse Disk: [ ' + FilePath + ' ] after closing this prompt'#13#10'If this disk can be found in another folder, browse to the correct path.');
sExt:= ExtractFileExt(FilePath); StringChange(sExt, '.', '');
if OpenFileModern(FMXForm.HandleHWND, sExt, FilePath, sPAth, 'Please specify the location of the next disk', sFile) then
begin
sPAth := ExtractFilePath(sFile);
ISArcDiskAddingSuccess:= ISArcExAddDisks(sPAth + FilePath, '{#DiskPassword}', ExpandConstant('{app}'));
if not ISArcDiskAddingSuccess then begin
DiskSkip:= True;
Exit;
end;
ISArcExDiskCount := ISArcExDiskCount + 1;
end else begin
ISArcDiskAddingSuccess := False;
DiskSkip:= True;
Exit;
end;
end;
end;
|
| The Following 4 Users Say Thank You to Fak Eid For This Useful Post: | ||
| Sponsored Links |
|
#527
|
|||
|
|||
|
Issue with FCustomFluentWindow
Hi @BlackFire,
I have identified that in 1080p the Form doesn't pop-up at the center of the screen, it is slightly to the left. This is not happening with everyone. Another issue with FCustomFluentWindow is if once triggered it keeps on popping-up repeatedly and cannot be closed. Code:
MessageForm.FCreate(FMXForm.HandleHWND, True, False, 0.56, 0); Code:
MessageForm.FCreateBlankForm(FMXForm.HandleHWND, ALBlack, ''); I've created two videos associated to this. Copy-paste the link after 'youtube.com/' as I'm unable to post the link because they get automatically parsed. Code:
watch?v=lKhINB7hyBY&ab_channel=FaKEid Code:
watch?v=xopBfI90T-g&ab_channel=FaKEid |
|
#528
|
|||
|
|||
|
Yes the issue is the resolution scale. In 100%, it comes completely in the center of the screen, but in 125%, it is slightly to the left.
I'm not using any custom theme file here. No code changes here, just the default template shared by @Blackfire for WPI Corepack and the issue is happening for FCustomFluentWindow for me. |
| The Following User Says Thank You to Fak Eid For This Useful Post: | ||
Behnam2018 (08-03-2024) | ||
|
#529
|
||||
|
||||
|
Hola everyone,
This is the FMXInno official development library, encompassing all features. my intention with this update is to address known issues so far. therefore, i need your assistance in testing it, especially in this development build. i intend to ensure the correct behavior of forms, including proper scaling and positioning. Code:
1. Note: This is in the development stage and not recommended for use in production. 2. Don't forget to share your feedback and feel free to report any bugs you discover. Quote:
Code:
Example:
procedure FMXDesigning;
begin
{...}
Page1.FCreate(FMXForm.Handle);
Page1.Visible(False);
{...}
Page2.FCreate(FMXForm.Handle);
Page2.Visible(False);
{...}
end;
Quote:
Code:
* FMXInno Form Types: 1. Normal Form: -- This is just an FMX layer; you can create any FMX object over it. -- You can still see through and access every InnoSetup object as this is a layer. 2. Blank Form: -- A standard FMX form filled with a solid color or an image by default. 3. Fluent Form / Fluent Color Form / Fluent Null (no-color) Form: -- FMX forms that have enabled Windows Fluent (or Acrylic/Aero) effects by default. 4. Gradient Form: -- A standard FMX form filled with a gradient color by default. 5. Image Form: -- An FMX form based on an image (form has the same shape as the image). 6. Background image scrolling Form: -- An FMX form that has a scrolling image background according to mouse movements. Quote:
. Last edited by BLACKFIRE69; 11-05-2024 at 09:02. |
| The Following 7 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
audiofeel (12-03-2024), Behnam2018 (12-03-2024), Cesar82 (12-03-2024), hitman797 (12-03-2024), Lord.Freddy (12-03-2024), ScOOt3r (12-03-2024), Tihiy_Don (12-03-2024) | ||
|
#530
|
|||
|
|||
|
Help with Animation of FCustomPage
Can someone help me in animating this section down on the click of 'i' (info button) ? Check the gif:
Page[1]: FCustomPage; PageContent[1]: FRectangle; Code:
Page[1].FCreate(ShadowImg.Handle);
Page[1].Visible(False);
PageContent[1].FCreate(Page[1].Handle);
PageContent[1].FillColor(HTMLColorStrToFMXColor('#1f2227'));
PageContent[1].SetBounds(20, 70, 780, 150);
PageContent[1].Opacity(0.85);
PageContent[1].CornerStyle(2, 2, [tcTopLeft, tcTopRight, tcBottomLeft, tcBottomRight], ctRound);
|
|
#531
|
|||
|
|||
|
Issue resurfaced with FCreateBlankForm
Hi @Blackfire
The earlier issue with FCreateBlankForm, where it loads with a blank image before load, has resurfaced. When running for the first time it is for more time, it subsequently gets faster (depending upon SSD/HDD, I suppose). Can you please look into it? I'm not sure if there is already a fix for it, as I lost track of some recent changes in FMXInno. If there is a fix, let me know. Image and gif added for review. |
|
#532
|
||||
|
||||
|
Quote:
Code:
procedure InitializeWizard(); begin FMXForm.Show; end; |
| The Following User Says Thank You to hitman797 For This Useful Post: | ||
Behnam2018 (15-03-2024) | ||
|
#533
|
||||
|
||||
|
FMXInno: Cumulative Update - [2024-Mar-15]
What's New: Code:
* Merged FMXInno Dev into this. * Updated ISArcEx to the latest version. * Made some improvements and bug fixes. * This update addresses most of the previous issues. * Added Radiant Shapes. * Introduced new properties to classes. * WinTitleBar will now display the application icon by default. * Not compressed by default. - No Exe compressor or file reduction tricks were used. * Implemented new functions. Quote:
. Last edited by BLACKFIRE69; 14-07-2024 at 02:18. |
|
#534
|
||||
|
||||
|
Quote:
FMXInno - Final Release [2024-Mar-20] What's new: Quote:
Code:
function FCreateFluentBlendedColor(WParent: HWND; DarkTheme, NoBorder: Boolean; Opacity: Single; BrightnessPct: Byte; BlendColorMode: TBlendColorMode): HWND; function FCreateFluentBlendedColorEx(WParent: HWND; DarkTheme, NoBorder: Boolean; Opacity: Single; BrightnessPct: Byte; BlendColorMode: TBlendColorMode; BlendColorLvl: Integer): HWND; function FCreateFluentBlendedColorEx2(WParent: HWND; VCLColor: TColor; DarkTheme, NoBorder: Boolean; Opacity: Single; BrightnessPct: Byte; BlendColorLvl: Integer): HWND; Note: The first post has been updated; check it out. . |
| The Following 9 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
audiofeel (19-03-2024), Behnam2018 (20-03-2024), Cesar82 (20-03-2024), Ele (24-03-2024), Fak Eid (18-05-2024), hitman797 (20-03-2024), JIEXA MEDVED (19-03-2024), Lord.Freddy (20-03-2024), Tihiy_Don (20-03-2024) | ||
|
#535
|
||||
|
||||
|
FMXInno: Minor Update for [Mar-20]
Quote:
UWP Tile Selection: Code:
procedure TileSelect(ATile: LongInt); procedure TileSelectEx(ATile: LongInt; MouseOverColor: TAlphaColor); Example: UWPTiles.TileSelect(Tile[5]); UWPTiles.TileSelectEx(Tile[5], ALRed); How to update: Code:
1. Download the latest update from the first post. 2. Replace the 'FMXInno.dll' and 'FMXInnoHandle.iss' with the provided ones. . Last edited by BLACKFIRE69; 30-04-2024 at 11:07. |
| The Following 8 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
audiofeel (20-03-2024), Behnam2018 (20-03-2024), Cesar82 (20-03-2024), Ele (24-03-2024), hitman797 (20-03-2024), Lord.Freddy (20-03-2024), ScOOt3r (20-03-2024), Tihiy_Don (20-03-2024) | ||
|
#536
|
||||
|
||||
|
FMXInno: Minor Update - [2024-Mar-27]
Code:
* Added the FColorComboBox class. * Prevented forms from being resized. * Added the following new functions: function IsValidVCLColor(const AColor: TColor): Boolean; function IsValidFMXColor(const AColor: TAlphaColor): Boolean; function IsLightFMXColor(const AColor: TAlphaColor): Boolean; function IsLightVCLColor(const AColor: TColor): Boolean; IsLightFMXColor: Quote:
Code:
procedure ClrBxOnChange(Sender: TObject);
var
CtrlClr: TAlphaColor;
begin
CtrlClr := AClrBx.GetColor;
if IsLightFMXColor(CtrlClr) then
AText.Color(ALBlack)
else
AText.Color(ALWhite);
ARect.FillColor(CtrlClr);
end;
Code:
Extra: function DesktopImgExist: Boolean; function GetDesktopImgColorFMX: TAlphaColor; function GetDesktopSolidColorFMX: TAlphaColor; function GetImgColorFMX(const Image: UnicodeString): TAlphaColor; function GetImgPartColorFMX(const Image: UnicodeString; const PixelX, PixelY, PixelW, PixelH: Single): TAlphaColor; How to update: Code:
1. Download the latest update from the first post. 2. Replace the 'FMXInno.dll' and 'FMXInnoHandle.iss' with the provided ones. . Last edited by BLACKFIRE69; 30-04-2024 at 11:07. |
| The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
audiofeel (27-03-2024), hitman797 (27-03-2024), Lord.Freddy (27-03-2024), ScOOt3r (27-03-2024), Tihiy_Don (27-03-2024) | ||
|
#537
|
||||
|
||||
|
FMXInno - Windows 8
Quote:
Last edited by BLACKFIRE69; 11-05-2024 at 08:56. |
| The Following 8 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
ADMIRAL (29-03-2024), audiofeel (28-03-2024), Behnam2018 (28-03-2024), hitman797 (29-03-2024), JIEXA MEDVED (02-04-2024), Lord.Freddy (28-03-2024), ScOOt3r (28-03-2024), Tihiy_Don (28-03-2024) | ||
|
#538
|
|||
|
|||
|
Link dwnlad
Quote:
|
|
#539
|
||||
|
||||
|
FMXInno - Final Release [2024-Apr-29]
* What's New: Quote:
Code:
Example: procedure DeinitializeSetup(); begin AWebView.Stop; AWebView.Shutdown; FMXInnoShutDown; end; Quote:
Note: The first post has been updated; check it out. . |
|
#540
|
|||
|
|||
|
Good afternoon! Some users, on any systems, have a problem when the installer process hangs in the processes and the form does not open. It occurs extremely rarely, in about 5-10 percent of users. I hope this issue has been fixed in this version. I tried to change different types of forms, the result is the same.
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Fluent Effects Standalone API - InnoSetup / VCL / FXM | BLACKFIRE69 | Conversion Tutorials | 0 | 15-11-2023 17:35 |
| 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 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |