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.

The same frame with different functionality in pull to refresh collectionView

Message added by Yaroslav Brovin,

Please be aware that these comments were copied here from another source and that the date and time shown for each comment may not be accurate.

  • Status: Fixed
  • Priority: Normal
  • Resolution: Fixed
  • Platform: Android
  • Affects version 1.15.5.0
  • Fix version: 1.16.0.0

When I embed a frame inside a form, the pull to refresh of the collectionView activates during scrolling, and if I just show the frame, the error disappears... I'm using a sample project to report this issue, thus using conventional code to embed the frame

 

procedure TFormMain.ShowFrame(Sender: TObject);
var
  FrameNumber: Integer;
  FrameClass: TfgFormClass;
begin
  TfgAssert.IsClass(Sender, TfgButton);

  FrameNumber := TfgButton(Sender).Tag;

  // Remove previous active frame
  if FActiveFrame <> nil then
  begin
    FActiveFrame.Parent := nil;
    FreeAndNil(FActiveFrame);
  end;

  case FrameNumber of
    1: FrameClass := TFrame1;
  else
    raise EfgAssertError.CreateFmt(SUnknownValue, ['FrameNumber']);
  end;

  // Embed new form as control into lContent layout^
  FActiveFrame := FrameClass.Create(nil);
  FActiveFrame.BeginUpdate;
  try
    FActiveFrame.PositionMode := TfgPositionMode.Relative;
    FActiveFrame.Alignment.FlexGrow := 1;
    FActiveFrame.FullScreen := False;
    FActiveFrame.Parent := lContent;
    FActiveFrame.Show;
  finally
    FActiveFrame.EndUpdate;
  end;
end;

In button 2, I just call the show, and look at the difference, remembering that the pull to refresh is off, I created the collectionView again.

procedure TFormMain.btnShowFrame2Tap(Sender: TObject);
begin
  frame1 := Tframe1.Create(nil);
  frame1.Show;
end;

 

Obs: button 1 embeds the screen and button 2 calls the frame alone.

 

image.png.06f9a7e89d7cee6a89bac9a19445f79a.png

User Feedback

Recommended Comments

Alex O

Members

Кстати да, заметил такое же и при встраивании в форму формы, тоже срабатывает

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.