Maintenance of Property Grid
  

Get or set Property value or Item data.

SYNTAX

Add Property Item to Category by Name or selected Category (directly or by Child Item):

ADD PROPERTYITEM <ControlName
OF| PARENT> <
ParentForm>
CATEGORY <
cCategory>
ITEMTYPE <
cType>
NAMEITEM <
cNameItem>
VALUE <
cValue>
[ ITEMDATA <
caData> ]
[ DISABLED ]
[ ID <
Id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]

Notes:
Use command ITEMTYPE from table Type of Items in chapter Constants of Property Grid according.

Add Property Category to Root or as Subcategory:

ADD CATEGORY <ControlName
OF| PARENT> <
ParentForm>
[ OF CATEGORY <
cCategoryParent>
NAMECATEGORY <
cNameCategory>
ID <
Id> ]
[ INFO <
cInfo> ]

Set Property Value to Item  by Item ID or selected Item:

SET PROPERTYITEM <ControlName>
[ OF| PARENT <ParentForm> ]
VALUE <
Value>
[ ITEMDATA <
caData>] 
[ ID <
Id> ]

Get Property Value from Item  by Item ID or selected Item:

GET PROPERTYITEM <ControlName>
[ OF
| PARENT <ParentForm> ]
[ ID <
Id> ]
[ SUBITEM <
nSubItem> ]
TO <
Value>

Get list of changend Item from Property :

GET CHANGEND PROPERTYITEM <ControlName>
[ OF| PARENT <
ParentForm> ]
TO <
aIdItem>

Get Property Info from Item  by Item ID or selected Item:

GET INFO PROPERTYITEM <ControlName>
[ OF| PARENT <
ParentForm> ]
[ ID <
Id> ]
TO <
aInfo>

Notes:
Command returns array aInfo with following structure:
  
Position
Description
Type of Value
1
Name
String
2
Value
String
3
Data
String
4
Disabled
Logic
5
Changed
Logic
6
Disable Edit
Logic
7
Item Type
Numeric
8
Item ID
Numeric
9
Item Info
String
10
Variable Name
String

Toggle, Expand or Collapse Category by name of Category:

TOGGLE CATEGORY <ControlName>
[ OF| PARENT <
ParentForm> ]
CATEGORY <
cNameCategory>

EXPEND CATEGORY <ControlName>
[ OF| PARENT <
ParentForm> ]
CATEGORY <
cNameCategory>

COLLAPSE CATEGORY <ControlName>
[ OF| PARENT <
ParentForm> ]
CATEGORY <
cNameCategory>

Enable or Disable Property Item by Item ID or selected Item:

ENABLE PROPERTYITEM <ControlName>
[ OF| PARENT <
ParentForm> ]
[ ID <
Id> ]

DISABLE PROPERTYITEM <ControlName>
[ OF| PARENT <
ParentForm> ]
[ ID <
Id> ]

Redraw Item to used after SET PROPERTYITEM:

REDRAW PROPERTYITEM <ControlName>
[ OF| PARENT <
ParentForm> ]
[ ID <
Id> ]

Load PropertyGri from fie:

LOAD PROPERTY <ControlName>
[ OF| PARENT> <
ParentForm>]
FROMFILE <
cFile> [ XML ]

Save PropertyGri to Value in memory:

SAVE MEMVALUE PROPERTY <ControlName>
[ OF| PARENT> <
ParentForm>]