Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > PropertyList Control >

PropertyList_ItemAdd

Previous pageReturn to chapter overviewNext page

 

Description

 

Adds a new property item to a property list control.

 

Syntax

 

n = PropertyList_ItemAdd(hWnd, ctrlID, ptrToPropertyItem)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

ptrToPropertyItem

Number

No

A pointer to a PropertyItem structure. Use VARPTR to calculate pointer to PropertyItem structure.

 

Remarks

 

Restrictions

 

See also

 

See PropertyItem structure.

 

Examples

 

Local pItem As propertyitem

 

pItem.propName  =  "Dialog Id"

pItem.curValue  =  "Test application"

pItem.nItemType =  %PIT_EDIT

pItem.cmbItems  =  ""

PROPERTYLIST_ItemAdd hDlg, idCtrl, VARPTR(pItem)