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

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

Версия 02:38, 13 июня 2019

Delphi

TfgCustomComboBox = class (TfgControl, IFGXContainer)

TComponent -> TfgControl -> TfgCustomComboBox

Прямые наследники: TfgComboBox