Jump to content
View in the app

A better way to browse. Learn more.

FGX Native

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi All,
i'm trying to show a new from from another with the code below :

FrmWait := TFrmWait.Create(nil);
TfgAnimationHelper.ShowForm(FrmWait);

The TfgAnimationHelper.ShowForm method lock the current Form when it exec the FrmWait.Create method.
I've tried to move my initializazion code from FrmWait.create to FrmWait.show but the initialization freeze the current form and only at the and i see the FrmWait. ( In windows environment i solve this problem with windows messages ).

Some one can help my ?
I'm following the wrong way ?

Thanks a lot

  • Author

Hi Yaroslav,
i attach my test project.

As you can see in the FrmLogin i call FrmWait with this code :

    FrmWait := TFrmWait.Create(nil);
    TfgAnimationHelper.ShowForm(FrmWait);

in FrmWait i've this method :

procedure TFrmWait.fgFormCreate(Sender: TObject);
begin
  TfgAnimationHelper.FadeOut(LblInfo, [TfgAnimationOption.StartFromCurrent], 0);

  LblInfo.Text:='Ciao Luca';
  TfgAnimationHelper.FadeIn(LblInfo, [TfgAnimationOption.StartFromCurrent], 500);
  Sleep(2000);
  TfgAnimationHelper.FadeOut(LblInfo, [TfgAnimationOption.StartFromCurrent], 500);

  sleep(500);

  LblInfo.Text:='Abbiamo quasi finito...';
  TfgAnimationHelper.FadeIn(LblInfo, [TfgAnimationOption.StartFromCurrent], 500);
  Sleep(2000);
  TfgAnimationHelper.FadeOut(LblInfo, [TfgAnimationOption.StartFromCurrent], 500);
end;

and this event freeze the current form.
I think i can fix with TfgCallBack from TfgAnimationHelper.ShowForm but i'm not sure and i don't know how to use it.

Thanks a lot.
FMX.7z

  • Author

Hi Yaroslav,
I've solved.

I've made a wrong usage of TfgAnimationHelper...
Thank you.

 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.