FGX.ComboBox.TfgCustomComboBox: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
(Метка: замена)
Строка 4: Строка 4:
  
 
<code lang="Delphi">TfgCustomComboBox = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)</code>
 
<code lang="Delphi">TfgCustomComboBox = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)</code>
 
== Описание ==
 
 
Описание отсутствует.
 
 
== Конструкторы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <code>constructor</code> || <code>Create(AOwner: [[TComponent]])</code>
 
 
|}
 
 
== Методы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <code lang="Delphi">procedure</code> || <code lang="Delphi">AddItem(const AItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]])</code>
 
Добавляет произвольный элемент комбобокса.
 
|-
 
| <code lang="Delphi">function</code> || <code lang="Delphi">AddTextItem(const AText: [[string]])</code>
 
Добавляет текстовый элемент комбобокса. Он отображает только текст.
 
|-
 
| <code lang="Delphi">function</code> || <code lang="Delphi">DeleteItem(const AItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]])</code>
 
Удаляет элемент по указанному инстансу '' AItem '' .
 
|-
 
| <code lang="Delphi">function</code> || <code lang="Delphi">DeleteItem(const AIndex: [[Integer]])</code>
 
Удаляет элемент по указанному индексу '' AIndex '' .
 
|-
 
| <code lang="Delphi">procedure</code> || <code lang="Delphi">Clear()</code>
 
Удаляет все элементы выпадающего списка.
 
|}
 
 
== Свойства ==
 
 
{| class="wikitable sortable"
 
|-
 
| <code>property</code> || <code>ActiveItem: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]]</code>
 
Активный/выбранный элмент ( '' ItemIndex '' ).
 
|-
 
| <code>property</code> || <code>Items[Index]: [[FGX.ComboBox.TfgCustomComboBoxItem|TfgCustomComboBoxItem]]</code>
 
Возвращает элемент по указанному индексу.
 
|-
 
| <code>property</code> || <code>ItemsCount: [[Integer]]</code>
 
Количество элементов списка.
 
|-
 
| <code>property</code> || <code>Text: [[string]]</code>
 
Возвращает текст текущего элемента, если элемент поддерживает текст (IFGXTextSupported).
 
|-
 
| <code>property</code> || <code>ItemIndex: [[Integer]]</code>
 
Индекс выбранного элемента выпадающего списка.
 
|}
 
 
== События ==
 
 
{| class="wikitable sortable"
 
|-
 
| <code>event</code> || <code>OnChanged: [[TNotifyEvent]]</code>
 
Срабатывает, когда пользователь выбрал другой элемент списка.
 
|-
 
| <code>event</code> || <code>OnItemSelected: [[TfgOnItemSelected]]</code>
 
Срабатывает, когда пользователь выбрал другой элемент списка. Дополнительно передает индекс выбранного элемента и сам экземпляр элемента.
 
|}
 
 
== Константы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <code>const</code> || <code>UndefinedItemIndex: [[Integer]]</code>
 
 
|}
 

Версия 04:10, 10 июня 2019

Delphi

TfgCustomComboBox = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)