Home Units Hierarchy Routines All identifiers

Class unaWinCombobox

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaWinCombobox = class(unaWinWindow)

Description

Combobox window.

Hierarchy

Overview

Methods

Public constructor create(parent: unaWinWindow; x: int = 2; y: int = 2; w: int = 80; h: int = 120; style: unsigned = CBS_DROPDOWNLIST or WS_CHILD or WS_TABSTOP or WS_VSCROLL or WS_VISIBLE); overload;
Public function add(const str: string): unaWinCombobox;
Public function findString(const str: string): int;

Properties

Public property count: unsigned read getCount;
Public property itemIndex: int read getItemIndex write setItemIndex;

Description

Methods

Public constructor create(parent: unaWinWindow; x: int = 2; y: int = 2; w: int = 80; h: int = 120; style: unsigned = CBS_DROPDOWNLIST or WS_CHILD or WS_TABSTOP or WS_VSCROLL or WS_VISIBLE); overload;

Creates Windows COMBOBOX window with CBS_DROPDOWNLIST style set by default.

Public function add(const str: string): unaWinCombobox;

Adds a string to combobox list.

Public function findString(const str: string): int;

Returns string index in combobox list, or -1 if string was not found.

Properties

Public property count: unsigned read getCount;

Returns number of items (strings) in combobox list.

Public property itemIndex: int read getItemIndex write setItemIndex;

Returns current selected item (string) index, or -1 if no item is selected.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09