#841
|
|||
|
|||
Lockscreen
How do I activate the lock screen on this as in the example the lock screen does not appear to work.
|
Sponsored Links |
#842
|
||||
|
||||
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. |
The Following 3 Users Say Thank You to audiofeel For This Useful Post: | ||
#843
|
|||
|
|||
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); |
#844
|
||||
|
||||
Quote:
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 14:23. |
#845
|
|||
|
|||
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. |
#846
|
||||
|
||||
FMXInno Custom Shapes
FMXInno Custom Shapes:
Quote:
. |
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
#847
|
||||
|
||||
hmm...
cool . |
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
#848
|
||||
|
||||
FMXInno Community
-- Frequent Requests from the FMXInno Community --
Quote:
Quote:
. |
#849
|
|||
|
|||
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
|
#850
|
|||
|
|||
They specifically looked at your installer to change the design. Gabe told me himself.
|
#851
|
|||
|
|||
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. |
#852
|
|||
|
|||
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 03:45. |
#853
|
|||
|
|||
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; 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; 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. Last edited by Fak Eid; 05-08-2024 at 08:59. |
#854
|
||||
|
||||
Quote:
|
The Following User Says Thank You to audiofeel For This Useful Post: | ||
Behnam2018 (11-08-2024) |
#855
|
||||
|
||||
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:
. |
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
Thread Tools | |
Display Modes | |
|
|
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 |