Class TGUIComboBox

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGUIComboBox = class(TGUIElement)

Description

A GUI combo box.

Hierarchy

Overview

Methods

Public function AddItem(const Text: StringType; Data: LongWord=0): LongWord; inline;
Public function GetIndexForItemData(Data: LongWord): LongInt; inline;
Public function GetItemData(Index: LongWord): LongWord; inline;
Public function GetItemText(Index: LongWord): StringType; inline;
Public procedure Clear; inline;
Public procedure RemoveItem(Index: LongWord); inline;
Public procedure SetTextAlignment(Horizontal, Vertical: TGUIAlignment); inline;

Properties

Public property ItemCount: LongWord read GetItemCount;
Public property SelectedItem: LongInt read GetSelected write SetSelected;

Description

Methods

Public function AddItem(const Text: StringType; Data: LongWord=0): LongWord; inline;

Adds an item and returns its the index.

Public function GetIndexForItemData(Data: LongWord): LongInt; inline;

Returns index based on item data.

Public function GetItemData(Index: LongWord): LongWord; inline;

Returns item data of an item. the idx may be a value from 0 to itemCount-1.

Public function GetItemText(Index: LongWord): StringType; inline;

Returns string of an item. the idx may be a value from 0 to ItemCount-1.

Public procedure Clear; inline;

Deletes all items in the combo box.

Public procedure RemoveItem(Index: LongWord); inline;

Removes an item from the combo box.

Public procedure SetTextAlignment(Horizontal, Vertical: TGUIAlignment); inline;

Sets text justification of the text area.

Parameters
Horizontal
alUpperLeft for left justified (default), alLowerRight for right justified, alCenter for centered text.
Vertical
alUpperLeft to align with top edge, alLowerRight for the bottom edge, alCenter for centered text (default)

Properties

Public property ItemCount: LongWord read GetItemCount;

Returns the amount of items in box.

Public property SelectedItem: LongInt read GetSelected write SetSelected;

The index of the currently selected item. -1 if no item is selected.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22