FGX.Controls.TfgControl: различия между версиями
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
(не показано 7 промежуточных версий этого же участника) | |||
Строка 9: | Строка 9: | ||
Прямые наследники: | Прямые наследники: | ||
− | [[FGX.ActivityIndicator.TfgCustomActivityIndicator|TfgCustomActivityIndicator]], [[FGX.Button.TfgCustomButton|TfgCustomButton]], [[FGX.CollectionView.TfgCollectionViewStyles|TfgCollectionViewStyles]], [[FGX.CollectionView.TfgCustomCollectionView|TfgCustomCollectionView]], [[FGX.ComboBox.TfgCustomComboBox|TfgCustomComboBox]], [[FGX.DateTimeControl.TfgCustomDateTimeControl|TfgCustomDateTimeControl]], [[FGX.DrawerLayout.TfgCustomDrawerLayout|TfgCustomDrawerLayout]], [[FGX.Edit.TfgCustomEdit|TfgCustomEdit]], [[FGX.GraphicControl.TfgGraphicControl|TfgGraphicControl]], [[FGX.Image.TfgCustomImage|TfgCustomImage]], [[FGX.Layout.TfgCustomLayout|TfgCustomLayout]], [[FGX.ListMenu.TfgCustomListMenu|TfgCustomListMenu]], [[FGX.Map.TfgCustomMap|TfgCustomMap]], [[FGX.Memo.TfgCustomMemo|TfgCustomMemo]], [[FGX.NavigationBar.TfgCustomNavigationBar|TfgCustomNavigationBar]], [[FGX.PageControl.TfgCustomPageControl|TfgCustomPageControl]], [[FGX.ProgressBar.TfgCustomProgressBar|TfgCustomProgressBar | + | [[FGX.ActivityIndicator.TfgCustomActivityIndicator|TfgCustomActivityIndicator]], [[FGX.Advertising.TfgCustomBannerAd|TfgCustomBannerAd]], [[FGX.BottomSheetLayout.TfgCustomBottomSheetLayout|TfgCustomBottomSheetLayout]], [[FGX.Button.AppleId.TfgCustomAppleIdButton|TfgCustomAppleIdButton]], [[FGX.Button.TfgCustomButton|TfgCustomButton]], [[FGX.CollectionView.TfgCollectionViewStyles|TfgCollectionViewStyles]], [[FGX.CollectionView.TfgCustomCollectionView|TfgCustomCollectionView]], [[FGX.ComboBox.TfgCustomComboBox|TfgCustomComboBox]], [[FGX.DateTimeControl.TfgCustomDateTimeControl|TfgCustomDateTimeControl]], [[FGX.DrawerLayout.TfgCustomDrawerLayout|TfgCustomDrawerLayout]], [[FGX.Edit.TfgCustomEdit|TfgCustomEdit]], [[FGX.GraphicControl.TfgGraphicControl|TfgGraphicControl]], [[FGX.Image.TfgCustomImage|TfgCustomImage]], [[FGX.Layout.TfgCustomLayout|TfgCustomLayout]], [[FGX.ListMenu.TfgCustomListMenu|TfgCustomListMenu]], [[FGX.LottieImage.TfgCustomLottieImage|TfgCustomLottieImage]], [[FGX.Map.TfgCustomMap|TfgCustomMap]], [[FGX.Memo.TfgCustomMemo|TfgCustomMemo]], [[FGX.NavigationBar.TfgCustomNavigationBar|TfgCustomNavigationBar]], [[FGX.PageControl.TfgCustomPageControl|TfgCustomPageControl]], [[FGX.ProgressBar.TfgCustomProgressBar|TfgCustomProgressBar]], [[FGX.Spacer.TfgCustomSpacer|TfgCustomSpacer]], [[FGX.StaticLabel.TfgCustomLabel|TfgCustomLabel]], [[FGX.ToolBar.TfgCustomToolBar|TfgCustomToolBar]], [[FGX.TrackBar.TfgCustomTrackBar|TfgCustomTrackBar]], [[FGX.VideoControl.TfgCustomVideoControl|TfgCustomVideoControl]], [[FGX.VirtualListPicker.TfgCustomVirtualListPicker|TfgCustomVirtualListPicker]], [[FGX.VirtualPagerLayout.TfgCustomVirtualPagerLayout|TfgCustomVirtualPagerLayout]], [[FGX.WebBrowser.TfgCustomWebBrowser|TfgCustomWebBrowser]] |
Непрямые наследники: | Непрямые наследники: | ||
− | [[FGX.ActivityIndicator.TfgActivityIndicator|TfgActivityIndicator]], [[FGX.Button.TfgButton|TfgButton]], [[FGX.CollectionView.TfgCollectionView|TfgCollectionView]], [[FGX.ComboBox.TfgComboBox|TfgComboBox]], [[FGX.DateTimeControl.TfgCustomDateControl|TfgCustomDateControl]], [[FGX.DateTimeControl.TfgCustomTimeControl|TfgCustomTimeControl]], [[FGX.Calendar.TfgCustomCalendar|TfgCustomCalendar]], [[FGX.DateEdit.TfgCustomDateEdit|TfgCustomDateEdit]], [[FGX.DatePicker.TfgCustomDatePicker|TfgCustomDatePicker]], [[FGX.Calendar.TfgCalendar|TfgCalendar]], [[FGX.DateEdit.TfgDateEdit|TfgDateEdit]], [[FGX.DatePicker.TfgDatePicker|TfgDatePicker]], [[FGX.TimeEdit.TfgCustomTimeEdit|TfgCustomTimeEdit]], [[FGX.TimePicker.TfgCustomTimePicker|TfgCustomTimePicker]], [[FGX.TimeEdit.TfgTimeEdit|TfgTimeEdit]], [[FGX.TimePicker.TfgTimePicker|TfgTimePicker]], [[FGX.DrawerLayout.TfgDrawerLayout|TfgDrawerLayout]], [[FGX.AutoCompleteEdit.TfgCustomAutoCompleteEdit|TfgCustomAutoCompleteEdit]], [[FGX.Edit.TfgEdit|TfgEdit]], [[FGX.AutoCompleteEdit.TfgAutoCompleteEdit|TfgAutoCompleteEdit]], [[FGX.PaintBox.TfgCustomPaintBox|TfgCustomPaintBox]], [[FGX.Shape.TfgShape|TfgShape]], [[FGX.PaintBox.TfgPaintBox|TfgPaintBox]], [[FGX.Arc.TfgCustomArc|TfgCustomArc]], [[FGX.Circle.TfgCustomCircle|TfgCustomCircle]], [[FGX.Ellipse.TfgCustomEllipse|TfgCustomEllipse]], [[FGX.Line.TfgCustomLine|TfgCustomLine]], [[FGX.RegularPolygon.TfgCustomRegularPolygon|TfgCustomRegularPolygon]], [[FGX.Rhomb.TfgCustomRhomb|TfgCustomRhomb]], [[FGX.Shape.TfgPathShape|TfgPathShape]], [[FGX.SvgPath.TfgCustomSvgPath|TfgCustomSvgPath]], [[FGX.Arc.TfgArc|TfgArc]], [[FGX.Arch.TfgCustomArch|TfgCustomArch]], [[FGX.Sector.TfgCustomSector|TfgCustomSector]], [[FGX.Arch.TfgArch|TfgArch]], [[FGX.Sector.TfgSector|TfgSector]], [[FGX.Circle.TfgCircle|TfgCircle]], [[FGX.Ellipse.TfgEllipse|TfgEllipse]], [[FGX.Line.TfgLine|TfgLine]], [[FGX.RegularPolygon.TfgRegularPolygon|TfgRegularPolygon]], [[FGX.Rhomb.TfgRhomb|TfgRhomb]], [[FGX.Rectangle.TfgCustomRectangle|TfgCustomRectangle]], [[FGX.Rectangle.TfgRectangle|TfgRectangle]], [[FGX.SvgPath.TfgSvgPath|TfgSvgPath]], [[FGX.Image.TfgImage|TfgImage]], [[FGX.CardPanel.TfgCustomCardPanel|TfgCustomCardPanel]], [[FGX.CollectionView.TfgCollectionViewStyle|TfgCollectionViewStyle]], [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]], [[FGX.DrawerLayout.TfgCustomDrawer|TfgCustomDrawer]], [[FGX.Forms.TfgCustomForm|TfgCustomForm]], [[FGX.Layout.TfgLayout|TfgLayout]], [[FGX.PageControl.TfgCustomPage|TfgCustomPage]], [[FGX.ScrollBox.TfgCustomScrollBox|TfgCustomScrollBox]], [[FGX.CardPanel.TfgCardPanel|TfgCardPanel]], [[FGX.ComboBox.TfgComboBoxTextItem|TfgComboBoxTextItem]], [[FGX.DrawerLayout.TfgDrawer|TfgDrawer]], [[FGX.Forms.TfgForm|TfgForm]], [[FGX.DrawerLayout.TfgMainContent|TfgMainContent]], [[FGX.PageControl.TfgPage|TfgPage]], [[FGX.ScrollBox.TfgScrollBox|TfgScrollBox]], [[FGX.ListMenu.TfgListMenu|TfgListMenu]], [[FGX.Map.TfgMap|TfgMap]], [[FGX.Memo.TfgMemo|TfgMemo]], [[FGX.NavigationBar.TfgNavigationBar|TfgNavigationBar]], [[FGX.PageControl.TfgPageControl|TfgPageControl]], [[FGX.ProgressBar.TfgProgressBar|TfgProgressBar | + | [[FGX.ActivityIndicator.TfgActivityIndicator|TfgActivityIndicator]], [[FGX.Advertising.TfgBannerAd|TfgBannerAd]], [[FGX.BottomSheetLayout.TfgBottomSheetLayout|TfgBottomSheetLayout]], [[FGX.Button.AppleId.TfgAppleIdButton|TfgAppleIdButton]], [[FGX.Button.TfgButton|TfgButton]], [[FGX.CollectionView.TfgCollectionView|TfgCollectionView]], [[FGX.ComboBox.TfgComboBox|TfgComboBox]], [[FGX.DateTimeControl.TfgCustomDateControl|TfgCustomDateControl]], [[FGX.DateTimeControl.TfgCustomTimeControl|TfgCustomTimeControl]], [[FGX.Calendar.TfgCustomCalendar|TfgCustomCalendar]], [[FGX.DateEdit.TfgCustomDateEdit|TfgCustomDateEdit]], [[FGX.DatePicker.TfgCustomDatePicker|TfgCustomDatePicker]], [[FGX.Calendar.TfgCalendar|TfgCalendar]], [[FGX.DateEdit.TfgDateEdit|TfgDateEdit]], [[FGX.DatePicker.TfgDatePicker|TfgDatePicker]], [[FGX.TimeEdit.TfgCustomTimeEdit|TfgCustomTimeEdit]], [[FGX.TimePicker.TfgCustomTimePicker|TfgCustomTimePicker]], [[FGX.TimeEdit.TfgTimeEdit|TfgTimeEdit]], [[FGX.TimePicker.TfgTimePicker|TfgTimePicker]], [[FGX.DrawerLayout.TfgDrawerLayout|TfgDrawerLayout]], [[FGX.AutoCompleteEdit.TfgCustomAutoCompleteEdit|TfgCustomAutoCompleteEdit]], [[FGX.Edit.TfgEdit|TfgEdit]], [[FGX.AutoCompleteEdit.TfgAutoCompleteEdit|TfgAutoCompleteEdit]], [[FGX.SearchEdit.TfgCustomSearchEdit|TfgCustomSearchEdit]], [[FGX.SearchEdit.TfgSearchEdit|TfgSearchEdit]], [[FGX.PaintBox.TfgCustomPaintBox|TfgCustomPaintBox]], [[FGX.Shape.TfgShape|TfgShape]], [[FGX.PaintBox.TfgPaintBox|TfgPaintBox]], [[FGX.Arc.TfgCustomArc|TfgCustomArc]], [[FGX.Circle.TfgCustomCircle|TfgCustomCircle]], [[FGX.Ellipse.TfgCustomEllipse|TfgCustomEllipse]], [[FGX.Line.TfgCustomLine|TfgCustomLine]], [[FGX.RegularPolygon.TfgCustomRegularPolygon|TfgCustomRegularPolygon]], [[FGX.Rhomb.TfgCustomRhomb|TfgCustomRhomb]], [[FGX.Shape.TfgPathShape|TfgPathShape]], [[FGX.Signature.TfgCustomSignature|TfgCustomSignature]], [[FGX.SvgPath.TfgCustomSvgPath|TfgCustomSvgPath]], [[FGX.Arc.TfgArc|TfgArc]], [[FGX.Arch.TfgCustomArch|TfgCustomArch]], [[FGX.Sector.TfgCustomSector|TfgCustomSector]], [[FGX.Arch.TfgArch|TfgArch]], [[FGX.Sector.TfgSector|TfgSector]], [[FGX.Circle.TfgCircle|TfgCircle]], [[FGX.Ellipse.TfgEllipse|TfgEllipse]], [[FGX.Line.TfgLine|TfgLine]], [[FGX.RegularPolygon.TfgRegularPolygon|TfgRegularPolygon]], [[FGX.Rhomb.TfgRhomb|TfgRhomb]], [[FGX.Rectangle.TfgCustomRectangle|TfgCustomRectangle]], [[FGX.Rectangle.TfgRectangle|TfgRectangle]], [[FGX.Signature.TfgSignature|TfgSignature]], [[FGX.SvgPath.TfgSvgPath|TfgSvgPath]], [[FGX.Image.TfgImage|TfgImage]], [[FGX.BottomSheetLayout.TfgCustomBottomSheet|TfgCustomBottomSheet]], [[FGX.BottomSheetLayout.TfgCustomBottomSheetContent|TfgCustomBottomSheetContent]], [[FGX.Camera.Preview.TfgCustomCameraPreview|TfgCustomCameraPreview]], [[FGX.CardPanel.TfgCustomCardPanel|TfgCustomCardPanel]], [[FGX.CollectionView.TfgCollectionViewStyle|TfgCollectionViewStyle]], [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]], [[FGX.DrawerLayout.TfgCustomDrawer|TfgCustomDrawer]], [[FGX.Forms.TfgCustomForm|TfgCustomForm]], [[FGX.Layout.TfgLayout|TfgLayout]], [[FGX.PageControl.TfgCustomPage|TfgCustomPage]], [[FGX.ScrollBox.TfgCustomScrollBox|TfgCustomScrollBox]], [[FGX.TouchInterceptableLayout.TfgCustomTouchInterceptableLayout|TfgCustomTouchInterceptableLayout]], [[FGX.BottomSheetLayout.TfgBottomSheet|TfgBottomSheet]], [[FGX.BottomSheetLayout.TfgBottomSheetContent|TfgBottomSheetContent]], [[FGX.Camera.Preview.TfgCameraPreview|TfgCameraPreview]], [[FGX.CardPanel.TfgCardPanel|TfgCardPanel]], [[FGX.ComboBox.TfgComboBoxTextItem|TfgComboBoxTextItem]], [[FGX.DrawerLayout.TfgDrawer|TfgDrawer]], [[FGX.Forms.TfgForm|TfgForm]], [[FGX.DrawerLayout.TfgMainContent|TfgMainContent]], [[FGX.PageControl.TfgPage|TfgPage]], [[FGX.ScrollBox.TfgScrollBox|TfgScrollBox]], [[FGX.ScrollBox.TfgVerticalScrollBox|TfgVerticalScrollBox]], [[FGX.ScrollBox.TfgHorizontalScrollBox|TfgHorizontalScrollBox]], [[FGX.TouchInterceptableLayout.TfgTouchInterceptableLayout|TfgTouchInterceptableLayout]], [[FGX.ListMenu.TfgListMenu|TfgListMenu]], [[FGX.LottieImage.TfgLottieImage|TfgLottieImage]], [[FGX.Map.TfgMap|TfgMap]], [[FGX.Memo.TfgMemo|TfgMemo]], [[FGX.NavigationBar.TfgNavigationBar|TfgNavigationBar]], [[FGX.PageControl.TfgPageControl|TfgPageControl]], [[FGX.ProgressBar.TfgProgressBar|TfgProgressBar]], [[FGX.Spacer.TfgSpacer|TfgSpacer]], [[FGX.CheckBox.TfgCustomCheckBox|TfgCustomCheckBox]], [[FGX.RadioButton.TfgCustomRadioButton|TfgCustomRadioButton]], [[FGX.StaticLabel.TfgLabel|TfgLabel]], [[FGX.Switch.TfgCustomSwitch|TfgCustomSwitch]], [[FGX.CheckBox.TfgCheckBox|TfgCheckBox]], [[FGX.RadioButton.TfgRadioButton|TfgRadioButton]], [[FGX.Switch.TfgSwitch|TfgSwitch]], [[FGX.ToolBar.TfgToolBar|TfgToolBar]], [[FGX.TrackBar.TfgTrackBar|TfgTrackBar]], [[FGX.VideoControl.TfgVideoControl|TfgVideoControl]], [[FGX.NumberListPicker.TfgCustomNumberListPicker|TfgCustomNumberListPicker]], [[FGX.VirtualListPicker.TfgVirtualListPicker|TfgVirtualListPicker]], [[FGX.NumberListPicker.TfgNumberListPicker|TfgNumberListPicker]], [[FGX.ImageSlider.TfgCustomImageSlider|TfgCustomImageSlider]], [[FGX.PagerLayout.TfgCustomPagerLayout|TfgCustomPagerLayout]], [[FGX.VirtualPagerLayout.TfgVirtualPagerLayout|TfgVirtualPagerLayout]], [[FGX.ImageSlider.TfgImageSlider|TfgImageSlider]], [[FGX.PagerLayout.TfgPagerLayout|TfgPagerLayout]], [[FGX.WebBrowser.TfgWebBrowser|TfgWebBrowser]] |
== Описание == | == Описание == | ||
Строка 33: | Строка 33: | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">BeforeDestruction()</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">BeforeDestruction()</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">ToString(): [[string]]</code> | ||
<span style="color:gray">Описание отсутствует.</span> | <span style="color:gray">Описание отсутствует.</span> | ||
|- | |- | ||
Строка 43: | Строка 46: | ||
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">IsDestroying(): [[Boolean]]</code> | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">IsDestroying(): [[Boolean]]</code> | ||
<p>Контрол находится в процессе уничтожения?</p> | <p>Контрол находится в процессе уничтожения?</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">UpdateTheme(const AThemeName: [[TfgThemeName|TfgThemeName]])</code> | ||
+ | |||
+ | <p>Замняет текущую используемую тему в компоненте на указанную <i>AThemeName</i> .</p><div class="info">Значение темы может быть сброшено при смене темы у формы владельца <i>Form</i> .</div> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">AddControl(const AChild: [[FGX.Controls.TfgControl|TfgControl]])</code> | ||
+ | <p>Добавляет указанный контрол <i>AChild</i> в конец списка своих непосредственно вложенных контролов. Добавленный контрол отображается на переднем плане.</p> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">InsertControl(const AChild: [[FGX.Controls.TfgControl|TfgControl]])</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">InsertControl(const AChild: [[FGX.Controls.TfgControl|TfgControl]])</code> | ||
<p>Добавляет указанный контрол <i>AChild</i> в конец списка своих непосредственно вложенных контролов. Добавленный контрол отображается на переднем плане.</p> | <p>Добавляет указанный контрол <i>AChild</i> в конец списка своих непосредственно вложенных контролов. Добавленный контрол отображается на переднем плане.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">InsertControl(const AChild: [[FGX.Controls.TfgControl|TfgControl]]; const AIndex: [[Integer]])</code> | ||
+ | |||
+ | <p>Вставляет указанный контрол <i>AChild</i> в позицию с индексом <i>AIndex</i> списка своих непосредственно вложенных контролов.</p><div class="info">0 - <i>AChild</i> располагается позади всех. <i>ControlsCount</i> - Поверх всех смежных.</div> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">RemoveControl(const AChild: [[FGX.Controls.TfgControl|TfgControl]])</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">RemoveControl(const AChild: [[FGX.Controls.TfgControl|TfgControl]])</code> | ||
Строка 76: | Строка 90: | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Invalidate()</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Invalidate()</code> | ||
<p>Выполнить полную перерисовку формы.</p> | <p>Выполнить полную перерисовку формы.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">PaintTo(const ACanvas: [[FGX.Canvas.TfgCanvas|TfgCanvas]])</code> | ||
+ | <p>Отрисовывает содержимое контрола и всех вложенных в него контролов на переданную канву <i>ACanvas</i> .</p> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">Clone(const AStoreEvents: [[Boolean]]): [[FGX.Controls.TfgControl|TfgControl]]</code> | | <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">Clone(const AStoreEvents: [[Boolean]]): [[FGX.Controls.TfgControl|TfgControl]]</code> | ||
Строка 99: | Строка 116: | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Realign()</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Realign()</code> | ||
<p>Принудительно запускает синхронное выравнивание, если выравнивание допустимо в текущий момент <i>CanRealign</i> .</p> | <p>Принудительно запускает синхронное выравнивание, если выравнивание допустимо в текущий момент <i>CanRealign</i> .</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">RequestRealign()</code> | ||
+ | |||
+ | <p>Помечает, что для контрол необходимо выполнить выравнивание.</p><div class="info">Процесс выравнивания происходит асинхронно, поэтому этот метод не выполняет выравнивание. Фактически процедура выравнивания произойдет позже. Если вам требуется выполнить выравнивание синхронно, то воспользуйтесь методов <i>Realign</i> .</div> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">BeginUpdate()</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">BeginUpdate()</code> | ||
Строка 122: | Строка 143: | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SubscribeOnNotification(const AObserver: [[FGX.Controls.Types.IFGXNotificationObserver|IFGXNotificationObserver]]; const ANotificationType: [[FGX.Controls.Types.TfgNotificationType|TfgNotificationType]])</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SubscribeOnNotification(const AObserver: [[FGX.Controls.Types.IFGXNotificationObserver|IFGXNotificationObserver]]; const ANotificationType: [[FGX.Controls.Types.TfgNotificationType|TfgNotificationType]])</code> | ||
<p>Подисывает наблюдателя <i>AObserver</i> на получение уведомлений типа <i>ANotificationType</i> .</p> | <p>Подисывает наблюдателя <i>AObserver</i> на получение уведомлений типа <i>ANotificationType</i> .</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SubscribeOnNotification(const AObserver: [[FGX.Controls.Types.IFGXNotificationObserver|IFGXNotificationObserver]]; const ANotificationTypes: [[FGX.Controls.Types.TfgNotificationTypes|TfgNotificationTypes]])</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">UnsubscribeOnNotification(const AObserver: [[FGX.Controls.Types.IFGXNotificationObserver|IFGXNotificationObserver]]; const ANotificationType: [[FGX.Controls.Types.TfgNotificationType|TfgNotificationType]])</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">UnsubscribeOnNotification(const AObserver: [[FGX.Controls.Types.IFGXNotificationObserver|IFGXNotificationObserver]]; const ANotificationType: [[FGX.Controls.Types.TfgNotificationType|TfgNotificationType]])</code> | ||
<p>Отписывает наблюдателя <i>AObserver</i> на получение уведомлений типа <i>ANotificationType</i> . Если подписчик не был ранее подписан, метод тогда ничего не делает.</p> | <p>Отписывает наблюдателя <i>AObserver</i> на получение уведомлений типа <i>ANotificationType</i> . Если подписчик не был ранее подписан, метод тогда ничего не делает.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">UnsubscribeOnNotification(const AObserver: [[FGX.Controls.Types.IFGXNotificationObserver|IFGXNotificationObserver]]; const ANotificationTypes: [[FGX.Controls.Types.TfgNotificationTypes|TfgNotificationTypes]])</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Notify(const ANotificationType: [[FGX.Controls.Types.TfgNotificationType|TfgNotificationType]])</code> | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Notify(const ANotificationType: [[FGX.Controls.Types.TfgNotificationType|TfgNotificationType]])</code> | ||
− | <p>Уведомляет всех подписчиков, что произошло событие с типом <i>ANotificationType</i> .</p> | + | <p>Уведомляет всех подписчиков, что произошло событие с типом <i>ANotificationType</i> . В этом случае, отправитель - это <i>Self</i> .</p> |
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Notify(const ASender: [[TObject]]; const ANotificationType: [[FGX.Controls.Types.TfgNotificationType|TfgNotificationType]])</code> | ||
+ | <p>Уведомляет всех подписчиков, что произошло событие с типом <i>ANotificationType</i> . Так же дополнительно считается, что отправителем является <i>ASender</i> .</p> | ||
|} | |} | ||
Строка 136: | Строка 166: | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Index: [[Integer]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Index: [[Integer]]</code> | ||
<p>Порядковый номер контрола в рамках родителя. Отвечает за порядок выравнивания и Z-порядок. 0 - контрол находится позади всех соседних и выравнивается первым.</p> | <p>Порядковый номер контрола в рамках родителя. Отвечает за порядок выравнивания и Z-порядок. 0 - контрол находится позади всех соседних и выравнивается первым.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>AnimationManager: [[FGX.Animation.TfgAnimationManager|TfgAnimationManager]]</code> | ||
+ | <p>Менеджер анимаций текущего компонента.</p> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Form: [[FGX.Controls.TfgControl|TfgControl]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Form: [[FGX.Controls.TfgControl|TfgControl]]</code> | ||
<p>Возвращает ссылку на форму, в которую встроен контрол.</p><div class="info">Контрол считается встроенным в форму, если по цепочке родителей можно добраться до экземпляра формы. Если одна форма встроена в другую, то вернет ссылку на ближайшую форму по цепочке родителей.</div> | <p>Возвращает ссылку на форму, в которую встроен контрол.</p><div class="info">Контрол считается встроенным в форму, если по цепочке родителей можно добраться до экземпляра формы. Если одна форма встроена в другую, то вернет ссылку на ближайшую форму по цепочке родителей.</div> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>RootForm: [[FGX.Controls.TfgControl|TfgControl]]</code> | ||
+ | <p>Возвращает ссылку на корневыую форму, которая содержит контрол.</p> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Controls: [[TList<FGX.Controls.TfgControl>]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Controls: [[TList<FGX.Controls.TfgControl>]]</code> | ||
Строка 150: | Строка 186: | ||
<p>Связь ресурса заднего фона.</p> | <p>Связь ресурса заднего фона.</p> | ||
|- | |- | ||
− | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Handle: [[FGX. | + | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Handle: [[FGX.Controls.Factory.TfgNativeControlHandle|TfgNativeControlHandle]]</code> |
<p>Хендл с информацией о нативном представлении контрола.</p> | <p>Хендл с информацией о нативном представлении контрола.</p> | ||
|- | |- | ||
Строка 169: | Строка 205: | ||
<p>Ширина контрола</p><div class="info">При задании ширины конечное значение ширины может отличаться от задаваемого. Это может зависит от ограничений нативного контрола или специфики реализации.</div> | <p>Ширина контрола</p><div class="info">При задании ширины конечное значение ширины может отличаться от задаваемого. Это может зависит от ограничений нативного контрола или специфики реализации.</div> | ||
− | |||
− | |||
− | |||
|- | |- | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Stored: [[Boolean]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Stored: [[Boolean]]</code> | ||
Строка 178: | Строка 211: | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>TagObject: [[TObject]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>TagObject: [[TObject]]</code> | ||
<p>Место хранения пользовательских данных, ассоциированных с данным контролом.</p> | <p>Место хранения пользовательских данных, ассоциированных с данным контролом.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>StyleLink: [[FGX.Assets.Style.TfgAssetStyleLink|TfgAssetStyleLink]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Autosize: [[FGX.Controls.Types.TfgSizeDimensions|TfgSizeDimensions]]</code> | ||
+ | <p>Режим автоматического рассчета размера компонента.</p> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Locked: [[Boolean]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Locked: [[Boolean]]</code> | ||
Строка 205: | Строка 244: | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>AlignWithMargins: [[Boolean]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>AlignWithMargins: [[Boolean]]</code> | ||
<p>Нужно ли использовать заданные внешние отступы <i>Margins</i> .</p> | <p>Нужно ли использовать заданные внешние отступы <i>Margins</i> .</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>ClipChildren: [[Boolean]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>StyleName: [[TfgAssetName|TfgAssetName]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>GestureKinds: [[FGX.Controls.TfgGestureKinds|TfgGestureKinds]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>GestureKinds: [[FGX.Controls.TfgGestureKinds|TfgGestureKinds]]</code> | ||
Строка 235: | Строка 280: | ||
<p>Срабатывает, когда пользователь коротко нажимает на экран без перемещения пальца по экрану.</p> | <p>Срабатывает, когда пользователь коротко нажимает на экран без перемещения пальца по экрану.</p> | ||
|- | |- | ||
− | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnLongTap: [[TfgLongTapEvent]]</code> | + | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnDoubleTap: [[TfgDoubleTapEvent|TfgDoubleTapEvent]]</code> |
+ | <p>Срабатывает, когда пользователь коротко нажимает два раза на экран без перемещения пальца по экрану.</p> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnLongTap: [[TfgLongTapEvent|TfgLongTapEvent]]</code> | ||
<p>Срабатывает, когда пользователь долго нажимает на экран без перемещения пальца по экрану.</p> | <p>Срабатывает, когда пользователь долго нажимает на экран без перемещения пальца по экрану.</p> | ||
|- | |- | ||
− | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnZoom: [[TfgZoomEvent]]</code> | + | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnZoom: [[TfgZoomEvent|TfgZoomEvent]]</code> |
<p>Срабатывает, когда пользователь опускает два пальца на экран и начинает их сводить/разводить.</p> | <p>Срабатывает, когда пользователь опускает два пальца на экран и начинает их сводить/разводить.</p> | ||
|- | |- | ||
Строка 244: | Строка 292: | ||
<p>Вызывается перед удалением контрола. А именно перед вызовом деструктора.</p> | <p>Вызывается перед удалением контрола. А именно перед вызовом деструктора.</p> | ||
|- | |- | ||
− | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnResized: [[TfgResizedEvent]]</code> | + | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnResized: [[TfgResizedEvent|TfgResizedEvent]]</code> |
<p>Вызывается когда контрол изменил свой размерм.</p> | <p>Вызывается когда контрол изменил свой размерм.</p> | ||
|- | |- | ||
− | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnPositionChanged: [[TfgPositionChangedEvent]]</code> | + | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnPositionChanged: [[TfgPositionChangedEvent|TfgPositionChangedEvent]]</code> |
<p>Вызывается когда контрол поменял свою позицию.</p> | <p>Вызывается когда контрол поменял свою позицию.</p> | ||
|- | |- | ||
− | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnPaint: [[TfgPaintEvent]]</code> | + | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnPaint: [[TfgPaintEvent|TfgPaintEvent]]</code> |
<p>Вызывается после отрисовки нативного контрола. Служит для выполнения пользовательской отрисовки поверх контрола.</p> | <p>Вызывается после отрисовки нативного контрола. Служит для выполнения пользовательской отрисовки поверх контрола.</p> | ||
|- | |- | ||
− | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnTouch: [[ | + | | <syntaxhighlight lang="Delphi">event</syntaxhighlight> || <code>OnTouch: [[TfgTouchEvent|TfgTouchEvent]]</code> |
<p>Вызывается в момент касания пользователем экрана устройства.</p> | <p>Вызывается в момент касания пользователем экрана устройства.</p> | ||
|- | |- | ||
Строка 289: | Строка 337: | ||
|- | |- | ||
| <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultPositionMode: [[FGX.Controls.Types.TfgPositionMode|TfgPositionMode]]</code> | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultPositionMode: [[FGX.Controls.Types.TfgPositionMode|TfgPositionMode]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultThemeName: [[string]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultAutosize: [[Set]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultClipChildren: [[Boolean]]</code> | ||
<span style="color:gray">Описание отсутствует.</span> | <span style="color:gray">Описание отсутствует.</span> | ||
|} | |} |
Текущая версия на 17:17, 23 декабря 2022
Delphi
TfgControl = class (TComponent, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)
Прямые наследники: TfgCustomActivityIndicator, TfgCustomBannerAd, TfgCustomBottomSheetLayout, TfgCustomAppleIdButton, TfgCustomButton, TfgCollectionViewStyles, TfgCustomCollectionView, TfgCustomComboBox, TfgCustomDateTimeControl, TfgCustomDrawerLayout, TfgCustomEdit, TfgGraphicControl, TfgCustomImage, TfgCustomLayout, TfgCustomListMenu, TfgCustomLottieImage, TfgCustomMap, TfgCustomMemo, TfgCustomNavigationBar, TfgCustomPageControl, TfgCustomProgressBar, TfgCustomSpacer, TfgCustomLabel, TfgCustomToolBar, TfgCustomTrackBar, TfgCustomVideoControl, TfgCustomVirtualListPicker, TfgCustomVirtualPagerLayout, TfgCustomWebBrowser
Непрямые наследники: TfgActivityIndicator, TfgBannerAd, TfgBottomSheetLayout, TfgAppleIdButton, TfgButton, TfgCollectionView, TfgComboBox, TfgCustomDateControl, TfgCustomTimeControl, TfgCustomCalendar, TfgCustomDateEdit, TfgCustomDatePicker, TfgCalendar, TfgDateEdit, TfgDatePicker, TfgCustomTimeEdit, TfgCustomTimePicker, TfgTimeEdit, TfgTimePicker, TfgDrawerLayout, TfgCustomAutoCompleteEdit, TfgEdit, TfgAutoCompleteEdit, TfgCustomSearchEdit, TfgSearchEdit, TfgCustomPaintBox, TfgShape, TfgPaintBox, TfgCustomArc, TfgCustomCircle, TfgCustomEllipse, TfgCustomLine, TfgCustomRegularPolygon, TfgCustomRhomb, TfgPathShape, TfgCustomSignature, TfgCustomSvgPath, TfgArc, TfgCustomArch, TfgCustomSector, TfgArch, TfgSector, TfgCircle, TfgEllipse, TfgLine, TfgRegularPolygon, TfgRhomb, TfgCustomRectangle, TfgRectangle, TfgSignature, TfgSvgPath, TfgImage, TfgCustomBottomSheet, TfgCustomBottomSheetContent, TfgCustomCameraPreview, TfgCustomCardPanel, TfgCollectionViewStyle, TfgCustomComboBoxItem, TfgCustomDrawer, TfgCustomForm, TfgLayout, TfgCustomPage, TfgCustomScrollBox, TfgCustomTouchInterceptableLayout, TfgBottomSheet, TfgBottomSheetContent, TfgCameraPreview, TfgCardPanel, TfgComboBoxTextItem, TfgDrawer, TfgForm, TfgMainContent, TfgPage, TfgScrollBox, TfgVerticalScrollBox, TfgHorizontalScrollBox, TfgTouchInterceptableLayout, TfgListMenu, TfgLottieImage, TfgMap, TfgMemo, TfgNavigationBar, TfgPageControl, TfgProgressBar, TfgSpacer, TfgCustomCheckBox, TfgCustomRadioButton, TfgLabel, TfgCustomSwitch, TfgCheckBox, TfgRadioButton, TfgSwitch, TfgToolBar, TfgTrackBar, TfgVideoControl, TfgCustomNumberListPicker, TfgVirtualListPicker, TfgNumberListPicker, TfgCustomImageSlider, TfgCustomPagerLayout, TfgVirtualPagerLayout, TfgImageSlider, TfgPagerLayout, TfgWebBrowser
Содержание
Описание
Описание отсутствует.
Конструкторы
constructor
|
Create(AOwner: TComponent)
Описание отсутствует. |
Методы
procedure
|
AfterConstruction()
Описание отсутствует. |
procedure
|
BeforeDestruction()
Описание отсутствует. |
function
|
ToString(): string
Описание отсутствует. |
function
|
IsLoading(): Boolean
Контрол находится в процессе десерилизации (чтении свойств из ресурсов)? |
function
|
IsCreating(): Boolean
Контрол находится в процессе создания? |
function
|
IsDestroying(): Boolean
Контрол находится в процессе уничтожения? |
procedure
|
UpdateTheme(const AThemeName: TfgThemeName)
Замняет текущую используемую тему в компоненте на указанную AThemeName . Значение темы может быть сброшено при смене темы у формы владельца Form .
|
procedure
|
AddControl(const AChild: TfgControl)
Добавляет указанный контрол AChild в конец списка своих непосредственно вложенных контролов. Добавленный контрол отображается на переднем плане. |
procedure
|
InsertControl(const AChild: TfgControl)
Добавляет указанный контрол AChild в конец списка своих непосредственно вложенных контролов. Добавленный контрол отображается на переднем плане. |
procedure
|
InsertControl(const AChild: TfgControl; const AIndex: Integer)
Вставляет указанный контрол AChild в позицию с индексом AIndex списка своих непосредственно вложенных контролов. 0 - AChild располагается позади всех. ControlsCount - Поверх всех смежных.
|
procedure
|
RemoveControl(const AChild: TfgControl)
Удаляет указанный контрол AChild среди списка своих непосредственно вложенных контролов. |
procedure
|
DeleteControls()
Удаляет все дочерние объекты и физически их уничтожает. |
function
|
HasParent(): Boolean
Задан ли родительский контрол или нет? |
function
|
IsChild(const AChild: TfgControl): Boolean
Возвращает True , если указанный контрол AChild является наследником текущего контрола (по цепочке родителей можно выйти на текущий контрол). |
function
|
GetParentComponent(): TComponent
Описание отсутствует. |
procedure
|
BringToFront()
Отправляет текущий контрол на передний план. При этом контрол будет отображаться поверх всех остльных соседних контролов (в рамках родителя). |
procedure
|
SendToBack()
Отправляет текущий контрол на задний план. При этом контрол будет отображаться позади всех остльных соседних контролов (в рамках родителя). |
function
|
HitTestPoint(const ALocalPoint: TPointF): Boolean
Проверяет, принадлежит ли указанная точка в локальной системе координат контрола, текущему контролу. |
function
|
ControlAtPoint(const ALocalPoint: TPointF; const AIgnoreStored: Boolean): TfgControl
Ищет дочерний контрол по указанной точке, указанной в локальной системе координат контрола, который ближе всего находится к пользователю по Z-оси. Если контрол не найден, вернется nil. Дополнительно при поиске можно игнорировать контролы AIgnoreStored , у которых Stored = True . |
procedure
|
Invalidate()
Выполнить полную перерисовку формы. |
procedure
|
PaintTo(const ACanvas: TfgCanvas)
Отрисовывает содержимое контрола и всех вложенных в него контролов на переданную канву ACanvas . |
function
|
Clone(const AStoreEvents: Boolean): TfgControl
Делает копию текущего контрола на основании "published" свойств. |
function
|
GetFormPosition(): TPointF
Положение контрола в системе кординат формы. |
function
|
GetFormBounds(): TRectF
Положение и размер контрола в системе кординат формы. |
function
|
MeasureSize(const AWidthSpec: TfgMeasuringSpecification; const AWidth: Single; const AHeightSpec: TfgMeasuringSpecification; const AHeight: Single): TSizeF
Выполняет рассчет размера контрола на основании входящих данных. Спецификации AWidthSpec и AHeightSpec указывают, как нужно использовать ширину AWidth и высоту AHeight при вычислении размера контрола.
Данный расчет никак не влияет на текущее положение и размеры контрола и всех дочерних контролов.
|
function
|
LocalToForm(const ALocalPoint: TPointF): TPointF
Конвертирует локальные координаты в рамках контрола в систему координат формы. |
function
|
CanRealign(): Boolean
Возвращает True, если можно выполнить выравнивание. False - в противном случае. Выравнивание можно отключать для предотвращения лишных проходов выравнивания через BeginUpdate - EndUpdate . Например, при пакетном изменении свойств выравнивания.
|
procedure
|
Realign()
Принудительно запускает синхронное выравнивание, если выравнивание допустимо в текущий момент CanRealign . |
procedure
|
RequestRealign()
Помечает, что для контрол необходимо выполнить выравнивание. Процесс выравнивания происходит асинхронно, поэтому этот метод не выполняет выравнивание. Фактически процедура выравнивания произойдет позже. Если вам требуется выполнить выравнивание синхронно, то воспользуйтесь методов Realign .
|
procedure
|
BeginUpdate()
Информирует контрол о том, что сейчас начнется пакетная обработка свойств. На это время выравнивание приостанавливается и продолжится, после вызова парного метода EndUpdate . BeginUpdate - EndUpdate учитывают количество вызовов. Поэтому методы можно вызывать несколько раз. Однако, при этом выравнивание будет вызвано, когда будут вызваны все парные EndUpdate .
|
procedure
|
EndUpdate()
Информирует контрол о том, что заканчивается пакетная обработка свойств. Если этот вызов EndUpdate является последним парным к BeginUpdate , то запускается выравнивание. BeginUpdate - EndUpdate учитывают количество вызовов. Поэтому методы можно вызывать несколько раз. Однако, при этом выравнивание будет вызвано, когда будут вызваны все парные EndUpdate .
|
function
|
IsUpdating(): Boolean
True - если контрол находится в состоянии пакетной обработки свойств. При этом на этот период выравнивание отключается. |
procedure
|
SetFocus()
Устанавливает фокус на контрол. Если контрол поддерживает работу с фокусом. |
function
|
ResetFocus(): Boolean
Сбрасывает фокус. |
function
|
IsFocused(): Boolean
Находится ли текущий контрол под фокусом? |
procedure
|
SubscribeOnNotification(const AObserver: IFGXNotificationObserver; const ANotificationType: TfgNotificationType)
Подисывает наблюдателя AObserver на получение уведомлений типа ANotificationType . |
procedure
|
SubscribeOnNotification(const AObserver: IFGXNotificationObserver; const ANotificationTypes: TfgNotificationTypes)
Описание отсутствует. |
procedure
|
UnsubscribeOnNotification(const AObserver: IFGXNotificationObserver; const ANotificationType: TfgNotificationType)
Отписывает наблюдателя AObserver на получение уведомлений типа ANotificationType . Если подписчик не был ранее подписан, метод тогда ничего не делает. |
procedure
|
UnsubscribeOnNotification(const AObserver: IFGXNotificationObserver; const ANotificationTypes: TfgNotificationTypes)
Описание отсутствует. |
procedure
|
Notify(const ANotificationType: TfgNotificationType)
Уведомляет всех подписчиков, что произошло событие с типом ANotificationType . В этом случае, отправитель - это Self . |
procedure
|
Notify(const ASender: TObject; const ANotificationType: TfgNotificationType)
Уведомляет всех подписчиков, что произошло событие с типом ANotificationType . Так же дополнительно считается, что отправителем является ASender . |
Свойства
property
|
Index: Integer
Порядковый номер контрола в рамках родителя. Отвечает за порядок выравнивания и Z-порядок. 0 - контрол находится позади всех соседних и выравнивается первым. |
property
|
AnimationManager: TfgAnimationManager
Менеджер анимаций текущего компонента. |
property
|
Form: TfgControl
Возвращает ссылку на форму, в которую встроен контрол. Контрол считается встроенным в форму, если по цепочке родителей можно добраться до экземпляра формы. Если одна форма встроена в другую, то вернет ссылку на ближайшую форму по цепочке родителей.
|
property
|
RootForm: TfgControl
Возвращает ссылку на корневыую форму, которая содержит контрол. |
property
|
Controls: [[TList<FGX.Controls.TfgControl>]]
Вложенные контролы. |
property
|
ControlsCount: Integer
Количество вложенных контролов. |
property
|
BackgroundLink: TfgAssetLink
Связь ресурса заднего фона. |
property
|
Handle: TfgNativeControlHandle
Хендл с информацией о нативном представлении контрола. |
property
|
Parent: TfgControl
Родитель |
property
|
Bounds: TRectF
Местоположение контрола в родительской системе координат. |
property
|
LocalBounds: TRectF
Возвращает местоположение контрола в своей системе координат. |
property
|
Height: Single
Высота контрола При задании высоты конечное значение высоты может отличаться от задаваемого. Это может зависит от ограничений нативного контрола или специфики реализации.
|
property
|
Width: Single
Ширина контрола При задании ширины конечное значение ширины может отличаться от задаваемого. Это может зависит от ограничений нативного контрола или специфики реализации.
|
property
|
Stored: Boolean
Нужно ли при серилизации сохранять текущий контрол. |
property
|
TagObject: TObject
Место хранения пользовательских данных, ассоциированных с данным контролом. |
property
|
StyleLink: TfgAssetStyleLink
Описание отсутствует. |
property
|
Autosize: TfgSizeDimensions
Режим автоматического рассчета размера компонента. |
property
|
Locked: Boolean
Позволяет заблокировать выделение компонента мышкой в дизайн тайме. |
property
|
Alignment: TfgControlAlignment
Настройки выравнивания контрола в рамках родителя. |
property
|
PositionMode: TfgPositionMode
Режим позиционирования контрола в рамках родителя (в абсолютных координатах / относительно). |
property
|
Position: TfgPosition
Позиция контрола в локальных логических координатах родителя Parent . |
property
|
RelativePosition: TfgRelativePosition
Относительная позиция контролов относительно родителя. Актуально только для PositionMode = Relative . |
property
|
Size: TfgSize
Размер контрола в логических координатах. |
property
|
Constraints: TfgConstraints
Ограничение на размеры контрола. |
property
|
Margins: TfgMargins
Внешние отступы контрола. Используются при выравнивании текущего контрола в рамках контейнера. |
property
|
AlignWithMargins: Boolean
Нужно ли использовать заданные внешние отступы Margins . |
property
|
ClipChildren: Boolean
Описание отсутствует. |
property
|
StyleName: TfgAssetName
Описание отсутствует. |
property
|
GestureKinds: TfgGestureKinds
Виды поддерживаемых жестов. |
property
|
LookupName: string
Идентификатор, используемый для поиска данного контрола среди других. Актуально для ситуаций, когда несколько контролов могут иметь одно и тоже имя для поиска и нам нужно найти данный контрол в определенной части поддерева. |
property
|
Opacity: Single
Прозрачность контрола. |
property
|
BackgroundName: TfgAssetName
Настройки отображения заднего фона контрола. |
property
|
Enabled: Boolean
Настройка отключения реакции на воздействия пользователя на компонент. |
property
|
Visible: Boolean
Видимость контрола. |
property
|
HitTest: Boolean
Описание отсутствует. |
События
event
|
OnTap: TNotifyEvent
Срабатывает, когда пользователь коротко нажимает на экран без перемещения пальца по экрану. |
event
|
OnDoubleTap: TfgDoubleTapEvent
Срабатывает, когда пользователь коротко нажимает два раза на экран без перемещения пальца по экрану. |
event
|
OnLongTap: TfgLongTapEvent
Срабатывает, когда пользователь долго нажимает на экран без перемещения пальца по экрану. |
event
|
OnZoom: TfgZoomEvent
Срабатывает, когда пользователь опускает два пальца на экран и начинает их сводить/разводить. |
event
|
OnDestroy: TNotifyEvent
Вызывается перед удалением контрола. А именно перед вызовом деструктора. |
event
|
OnResized: TfgResizedEvent
Вызывается когда контрол изменил свой размерм. |
event
|
OnPositionChanged: TfgPositionChangedEvent
Вызывается когда контрол поменял свою позицию. |
event
|
OnPaint: TfgPaintEvent
Вызывается после отрисовки нативного контрола. Служит для выполнения пользовательской отрисовки поверх контрола. |
event
|
OnTouch: TfgTouchEvent
Вызывается в момент касания пользователем экрана устройства. |
event
|
OnEnter: TNotifyEvent
Срабатывает, когда контрол получает фокус. |
event
|
OnExit: TNotifyEvent
Срабатывает, когда контрол теряет фокус. |
Константы
const
|
DefaultAlignWithMargins: Boolean
Описание отсутствует. |
const
|
DefaultOpacity: Integer
Описание отсутствует. |
const
|
DefaultVisible: Boolean
Описание отсутствует. |
const
|
DefaultEnabled: Boolean
Описание отсутствует. |
const
|
DefaultHitTest: Boolean
Описание отсутствует. |
const
|
DefaultStored: Boolean
Описание отсутствует. |
const
|
DefaultLocked: Boolean
Описание отсутствует. |
const
|
DefaultPositionMode: TfgPositionMode
Описание отсутствует. |
const
|
DefaultThemeName: string
Описание отсутствует. |
const
|
DefaultAutosize: Set
Описание отсутствует. |
const
|
DefaultClipChildren: Boolean
Описание отсутствует. |