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.

Ошибка OnTouch в TfgMemo дублирует событие

  • Status: Closed
  • Priority: Normal
  • Resolution: Works as expected
  • Platform: Android
  • Affects version 1.18.3.0

memo_error.rar

Вынужден был пересесть с OnTap на OnTouch, а там он на форме 2 раза отрабатывает, а будучи во фрейме 3 раза.

User Feedback

Recommended Comments

  • Administrators

Здесь нет ошибки. Событие OnTouch вызывается два раза и не зависит от места расположения контрола. Разница в аргументе AAction: TfgTouchAction, который отвечает за тип события.

Обычно эта последовательность выглядит так: TfgTouchAction.Down, TfgTouchAction.Up.

Вы можете убедиться в этом сами, залогировав событие OnTouch.

uses
  FGX.Log, System.Rtti;

procedure TFrame1.fgMemo1Touch(Sender: TObject; const ATouches: TfgTouches;
  const AAction: TfgTouchAction; var AHandled: Boolean);
begin
  TfgLog.Debug('### parent %s, action %s', [Name, TRttiEnumerationType.GetName(AAction)]);
end;

 

Аскар Джакишев

Active subscription

благодарю, да, я понял свое заблуждение, Ярослав в другом посте уже объяснил в чем было дело.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.