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

Reply
 
Thread Tools Display Modes
  #841  
Old 04-07-2024, 06:00
ErinMonroe ErinMonroe is offline
Registered User
 
Join Date: Jun 2024
Location: Australia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ErinMonroe is on a distinguished road
Lockscreen

How do I activate the lock screen on this as in the example the lock screen does not appear to work.
Reply With Quote
Sponsored Links
  #842  
Old 06-07-2024, 22:00
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 356
Thanks: 435
Thanked 818 Times in 299 Posts
audiofeel is on a distinguished road
Lightbulb FSwitch

- What should I do if I can't find the right FSwitch in style and appearance?
- "Draw" myself.
we will need FRectangle and FCircle.
Attached Images
File Type: gif Example_Custom_Switch.gif (1.51 MB, 257 views)
Attached Files
File Type: 7z Example_Custom_Switch.7z (1.6 KB, 7 views)
Reply With Quote
The Following 3 Users Say Thank You to audiofeel For This Useful Post:
ADMIRAL (07-07-2024), Behnam2018 (07-07-2024), hitman797 (08-07-2024)
  #843  
Old 11-07-2024, 13:05
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 144
Thanks: 89
Thanked 136 Times in 53 Posts
Fak Eid is on a distinguished road
I have a CustomForm: FCustomFluentWindow on which I have a 'browse' button for Directory change. When I click on it, I have DirBrowseDlg: FFLuentDirBrowse, which keeps flickering. The reason it is flickering is because the CustomForm is still open. If I close that CustomForm, the flickering stop.

@Blackfire, please acknowledge this issue to either fix it, or as a workaround I'm closing the CustomForm when 'Browse' button is clicked, but want Custom.Show after the user clicks on 'Ok'/'Cancel' on DirBrowseDlg. Can anybody help me with code snippet?

I might need
procedure ButtonOnMouseClick(ButtonIndex: Integer; Event: TNotifyEvent);
Reply With Quote
  #844  
Old 11-07-2024, 14:38
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 356
Thanks: 435
Thanked 818 Times in 299 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
Something like this would be helpful and doesn't exist in current version of FMXInno. @Blackfire, can you please add this method to FFluentDirBrowse?
Code:
    function GetNewFolderBtnClickEvent: LongInt;
    function GetOkBtnClickEvent: LongInt;
    function GetCancelBtnClickEvent: LongInt;
Code:
    TObject(BrowseNewFolderButton.GetObject):
      CallNotifyEvents(DirBrowseForm.GetNewFolderBtnClickEvent, Longint(Sender));

    TObject(BrowseOkButton.GetObject):
      CallNotifyEvents(DirBrowseForm.GetOkBtnClickEvent, Longint(Sender));

    TObject(BrowseCancelButton.GetObject):
      CallNotifyEvents(DirBrowseForm.GetCancelBtnClickEvent, Longint(Sender));

Last edited by audiofeel; 16-07-2024 at 13:23.
Reply With Quote
  #845  
Old 12-07-2024, 05:39
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 144
Thanks: 89
Thanked 136 Times in 53 Posts
Fak Eid is on a distinguished road
Even with this solution, we would still require an event listener like:
procedure ButtonOnMouseClick(ButtonIndex: Integer; Event: TNotifyEvent);

or else how will it enter @CommonOnClick code block, without creating custom buttons for ok and cancel.
Reply With Quote
  #846  
Old 14-07-2024, 12:36
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno Custom Shapes

FMXInno Custom Shapes:


Quote:
Is it boring to use regular shapes every time? if so, you can start creating your own shapes to use in FMXInno.

.
Attached Images
File Type: png 00.png (40.1 KB, 189 views)
File Type: png 01.png (26.0 KB, 187 views)
File Type: png 02.png (62.3 KB, 193 views)
Attached Files
File Type: rar Test.rar (5.62 MB, 27 views)
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (14-07-2024), hitman797 (14-07-2024), Lord.Freddy (16-07-2024)
  #847  
Old 16-07-2024, 04:03
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Thumbs up

hmm...
cool

.
Attached Images
File Type: png img287665852447.png (35.6 KB, 173 views)
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (16-07-2024), Behnam2018 (17-07-2024), hitman797 (17-07-2024), ScOOt3r (16-07-2024)
  #848  
Old 27-07-2024, 03:46
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno Community

-- Frequent Requests from the FMXInno Community --


Quote:
* Users frequently ask how to play videos (locally/web) through WebView2.
* it's not a big deal; it can be done using a simple HTML file and/or just HTML content.

Quote:
- So, i decided to give you some examples. in the attachment, you'll find 6 examples related to this.

- Here, i've used inline-CSS for styles and ease of use. but you don't have to do it this way; you can have a separate CSS file (Style.css) for this purpose.

- As i mentioned before, you can achieve this in two ways: either by generating an HTML file at runtime or by using HTML content instead of a file. however, there're some limitations with HTML content. with this approach, you may not have the auto-run feature, and you need to do folder mapping for resources. so, i personally prefer generating an HTML file at runtime; it's much easier.

- It's possible to control video playback (pause, resume, stop, etc.) through WebView2 by injecting JavaScript into the HTML file loaded in the WebView2 control. you can call these JavaScript functions from FMXInno code using the ExecuteScript method of WebView2.

- Also, you'll find a simple tool (_TxtToDelphiStr.exe) in the attachment that converts an HTML file to a Delphi/Inno string, saving you time.

- The HTML content in the examples is not exactly the same as the output of '_TxtToDelphiStr.exe' because i've made some necessary changes to make everything work. so, don't get things mixed up.

- I've updated the WebView2 to the latest version in the FMXInno DLL.

- These examples are only for Windows 10 and Windows 11 as WebView2 requires the 'WebView2 Runtime' to be installed on the system.

- Alternatively, download the WebView2 Runtime manually for unsupported systems. Download Microsoft WebView2


.
Attached Images
File Type: png 00.png (1.7 KB, 124 views)
File Type: png 00b.png (1.6 KB, 123 views)
File Type: png w1.png (13.3 KB, 123 views)
File Type: png w2.png (20.3 KB, 125 views)
File Type: png w3.png (22.6 KB, 128 views)
File Type: png x1.png (41.3 KB, 127 views)
File Type: png x1b.png (21.1 KB, 123 views)
File Type: png x2.png (86.9 KB, 126 views)
File Type: png x3.png (101.1 KB, 122 views)
Attached Files
File Type: rar FMXInno-WebView2-[Embedded_Video].rar (5.41 MB, 20 views)
Reply With Quote
The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (27-07-2024), Ele (28-07-2024), Fak Eid (27-07-2024), hitman797 (27-07-2024), ScOOt3r (27-07-2024)
  #849  
Old 29-07-2024, 13:24
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 144
Thanks: 89
Thanked 136 Times in 53 Posts
Fak Eid is on a distinguished road
What are the chances that Epic Games updated their UI few days after I created an installer that looks like it. Draining all my efforts
Reply With Quote
  #850  
Old 29-07-2024, 21:00
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 41
Thanks: 87
Thanked 23 Times in 16 Posts
Tihiy_Don is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
What are the chances that Epic Games updated their UI few days after I created an installer that looks like it. Draining all my efforts
They specifically looked at your installer to change the design. Gabe told me himself.
Reply With Quote
  #851  
Old 30-07-2024, 15:06
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 144
Thanks: 89
Thanked 136 Times in 53 Posts
Fak Eid is on a distinguished road
Help with WebView

Any idea how can I bring this section to the front in case of using WebView? When using FImage, on the click of Downloads button I'm doing DownloadInfo.BringToFront; which doesn't seem to be working in case of FWebView.

As an alternate, I'm hiding the FWebView when the Download Info section is opened, but it looks clumsy and not good. If we can display this over it, would be really good.
Attached Images
File Type: jpg Screenshot 2024-07-31 033332.jpg (78.9 KB, 105 views)
Reply With Quote
  #852  
Old 05-08-2024, 02:41
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 144
Thanks: 89
Thanked 136 Times in 53 Posts
Fak Eid is on a distinguished road
Add parameters to WebView

Hi @Blackfire,

I personally believe that WebView has too much of unexplored potential just like FNewINI and there are numerous amount of possibility with it.
- Can we have SetBounds and IsVisible parameters on FWebView2Obj?
- Can we make it dependent on FRectangle handles completely instead of FMXForm.Handle?

I might be asking for more features on it.
Including these parameters will help me to add WebView in my Steam Limitless installer.

Last edited by Fak Eid; 05-08-2024 at 02:45.
Reply With Quote
  #853  
Old 05-08-2024, 07:17
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 144
Thanks: 89
Thanked 136 Times in 53 Posts
Fak Eid is on a distinguished road
Custom Slideshow and Generic WebView Example

Real life examples are in Epic Games Installer

Generic WebView Example
You can reuse the attached WebView.html like this:

Code:
[Files]
Source: "Files\Web\WebView.html"; DestDir: "{tmp}"; Flags: dontcopy;
Code:
procedure LoadHtmlContent(Width, Height: Integer; SrcURL: WideString);
var
  sHtml, VideoId: Widestring;
  sTemplate: AnsiString;
  Sl: TStringList;
begin
  VideoId := Copy(SrcURL, Pos('v=', SrcURL) + 2, 11);
  LoadStringFromFile(ExtractAndLoad('WebView.html'), sTemplate);
  sHtml := Format(sTemplate, [Width, Height, VideoId]);

  Sl := TStringList.Create;
  try
    Sl.Text := sHtml;
    Sl.SaveToFile(ExpandConstant('{tmp}\WebView.html'));
  finally
    Sl.Free;
  end;
end;
Code:
LoadHtmlContent(680, 384, 'https://www.youtube.com/ watch?v=hS7ZY7oLCS4&ab_channel=RANDOMGAMERTAGS');

TrailerRect.FCreate(FMXForm.Handle);
TrailerRect.SetBounds(250, 145, 680, 383);
TrailerRect.Opacity(0);
TrailerRect.HitTest(False);

TrailerWebView.FCreate(FMXForm.Handle, TrailerRect.Handle, ExpandConstant('{tmp}\WebView.html'));
TrailerWebView.Start;
Custom Image Slideshow
The need for this was because both type of Image Slideshow were dependent on FMXForm and couldn't be overlayed with a different component. Hence, I had to go with creating my own.

Code:
j: Integer;
GameImage: FImage;
SlideShowTimer: FTimer;
Code:
GameImage.FCreate(FMXForm.Handle);
GameImage.SetBounds(250, 145, 680, 383);
GameImage.LoadPicture(ExtractAndLoad('Image0.jpg'), iwStretch);
GameImage.Opacity(1);

SlideShowTimer.FCreate(GameImage.Handle, True);
SlideShowTimer.Interval(100);
SlideShowTimer.OnTimer(@ChangeSlide);
Code:
procedure ChangeSlide(Sender: TObject);
var
  Time: Cardinal;
  SlideOpacity: Single;
begin
  if GameImage.GetOpacity = 1 then Slider := False
  else if GameImage.GetOpacity = 0 then begin
    GameImage.LoadPicture(ExtractAndLoad('Image' + IntToStr(j) +'.jpg'), iwStretch);
    j := j+1;
    Slider := True;
  end;

  if (Slider = False) and not (GameImage.GetOpacity = 0) then SlideOpacity := GameImage.GetOpacity - 0.05
  else if (Slider = True) and not(GameImage.GetOpacity = 1) then SlideOpacity := GameImage.GetOpacity + 0.05;
  GameImage.Opacity(SlideOpacity);

  #ifdef NumberOfSlides
  if j = {#NumberOfSlides} then j := 0;
  #endif
end;
What is NumberOfSlides?
Settings.ini has a parameter as Number of Slides where you need to define the number of Image Files from the folder, to be included in the slideshow.
Attached Images
File Type: gif Fak Eid SlideShow.gif (1.92 MB, 82 views)
Attached Files
File Type: rar WebView.rar (620 Bytes, 11 views)

Last edited by Fak Eid; 05-08-2024 at 07:59.
Reply With Quote
  #854  
Old 05-08-2024, 22:10
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 356
Thanks: 435
Thanked 818 Times in 299 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
Hi @Blackfire,

I personally believe that WebView has too much of unexplored potential just like FNewINI and there are numerous amount of possibility with it.
- Can we have SetBounds and IsVisible parameters on FWebView2Obj?
- Can we make it dependent on FRectangle handles completely instead of FMXForm.Handle?

I might be asking for more features on it.
Including these parameters will help me to add WebView in my Steam Limitless installer.
I don't see any potential in this idea. It works like an application within another application, and it requires additional resources. It will always be at the top of all the interfaces. In that regard, the "HTML Component Library" seems like a good option. It has excellent performance.

Attached Files
File Type: 7z csstransforms.7z (1.93 MB, 6 views)
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
Behnam2018 (11-08-2024)
  #855  
Old 16-08-2024, 22:33
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno - Updates

FMXInno - Updates


* Let me know if you would like to have the FCustomMemo in future updates. it's an advanced Memo component i used previously in the Avalon Installer, and it originally comes with FMXInno v1.0.0.3.


Features:
Quote:
1. Fully customizable overall.

2. Ability to customize individual items/lines.

3. Each item/line can be either text or any object (Rectangle, Image, FMXInno Blueprint, etc.) you prefer.

4. Each line's height and width can be adjusted individually.

5. Supports navigation, scrollbars, and more.

.
Attached Images
File Type: png 0.png (43.9 KB, 32 views)
File Type: png 1.png (57.9 KB, 30 views)
File Type: png 2.png (49.4 KB, 30 views)
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (17-08-2024), JIEXA MEDVED (17-08-2024), Tihiy_Don (18-08-2024)
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 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



All times are GMT -7. The time now is 08:20.


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