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

Здравствуйте, у меня есть начальный проект мобильного приложения. есть главная форма Form.Main.pas - в ней находятся fgDrawerLayout. В нем находится меню для отображения контента и есть компонент "Content". как с помощью кода мне передать в этот компонент другие фреймы/формы. спасибо

  • Author
3 часа назад, Viktor Akselrod сказал:

Здравствуйте.

Вы можете назначить родителя фрейму  Frame1.Parent := fgDrawerLayout1.Content,  либо добавить фрейм в список дочерних компонентов fgDrawerLayout1.Content.AddControl(Frame1).

procedure TFormMain.fgButton1Tap(Sender: TObject);
begin
  Frame1.Parent := fgDrawerLayout1.Content;
end;

Вылезает ошибка:

Project test.apk raised exception class Segmentation fault (11).

 

как выглядит форма:

 

 

image.png.47febd09f593170b569c92489180c7b3.png

 

как выглядит Фрейм:

image.png.cf649ce12c346b22ac54f6cee608a296.png

  • Author
3 часа назад, Viktor Akselrod сказал:

Здравствуйте.

Вы можете назначить родителя фрейму  Frame1.Parent := fgDrawerLayout1.Content,  либо добавить фрейм в список дочерних компонентов fgDrawerLayout1.Content.AddControl(Frame1).

Если делать вторым способом появляется ошибка 

Project test.apk raised exception class EfgAssertError with message 'Требуется не пустое значение. AChild'.

  • Author

Решено!

procedure TFormMain.fgButton1Tap(Sender: TObject);
begin
  frame1 := TFrame1.Create(nil);
  frame1.Parent := fgDrawerLayout1.Content;
end;

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.