<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > PropertyList Control > PropertyList Control Commands > PropertyList_ItemAdd |
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)