12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VCL Components<br />

Property Applies To Description<br />

Properties<br />

Style ComboBox The style of the combo box. Choices are<br />

csSimple, csDropDown, csDropDownList,<br />

lbOwnderDrawFixed, and csOwnerDrawVariable.<br />

(See Table 8.5 for a description of the three basic<br />

styles.) Default: csDropDown<br />

ListBox Style choices for list boxes are lbStandard,<br />

lbOwnderDrawFixed, and csOwnerDrawVariable.<br />

Default: lbStandard<br />

TabWidth ListBox List boxes can use tabs. This property sets the tab<br />

width, <strong>in</strong> pixels. Default: 0<br />

Text ComboBox Conta<strong>in</strong>s the text <strong>in</strong> the edit portion of the<br />

combo box.<br />

Runtime Properties<br />

ItemIndex ListBox Conta<strong>in</strong>s the <strong>in</strong>dex of the currently selected item,<br />

with 0 be<strong>in</strong>g the first item <strong>in</strong> the list. Returns -1<br />

if no item is selected. When written to, selects<br />

the specified <strong>in</strong>dex.<br />

SelCount ListBox Conta<strong>in</strong>s the number of items selected <strong>in</strong> a<br />

multiple-selection list box.<br />

Selected ListBox Returns true if the specified item is selected or<br />

false if it is not.<br />

SelLength ComboBox Conta<strong>in</strong>s the length of the text currently selected<br />

<strong>in</strong> the edit control part of the combo box.<br />

SelStart ComboBox Conta<strong>in</strong>s the start<strong>in</strong>g po<strong>in</strong>t of the selected text <strong>in</strong><br />

the edit control. The first character <strong>in</strong> the edit<br />

control is 0.<br />

SelText ComboBox Conta<strong>in</strong>s the currently selected text <strong>in</strong> the edit<br />

control.<br />

TopIndex ListBox Returns the list box item that is at the top of the<br />

list box. Can be used to set the top item to a<br />

certa<strong>in</strong> list box item.<br />

295<br />

8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!