Property Grid created indirect
  

Creates a property grid control directly in program.

SYNTAX

DEFINE PROPGRID <ControlName>
[ OF | PARENT <
ParentWindowName> ]
AT <
nRow> ,<nCol>
[ WIDTH <
nWidth> ]
[ HEIGHT <nHeight> ]
[ HEADER <alHeaderName,...> ]                 // List or array of headers name
[ FONT <cFontname> SIZE <nFonSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ BACKCOLOR <
BackColor> ]
[ FONTCOLOR <
FontColor> ]
[ INDENT <
nIndent> ]
[ ITEMHEIGHT <
nItemHeight>]
[ DATAWIDTH <
nDataWidth>]
[ TOOLTIP <
cToolTipText> ]
[ OKBTN [ USEROKPROC <
UserOkProc>] [  APPLYBTN ]]
[ CANCELBTN [ USERCANCELPROC <
UserCancelProc> ] ]
[ HELPBTN <
HelpProc> ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON CHANGEVALUE <OnChangeValueProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]]
[ ON CLOSE <
OnCloseProcedure> | <bBlock> ]
[ ITEMEXPAND ]
[ SINGLEEXPAND ]
[ READONLY ]
[ ITEMINFO [ INFOHEIGHT <
nInfoHeight> ]]
[ HELPID <nHelpId> ]
[ IMAGELIST <
imglist> ]

.......

Category item...
Data item
......
......

END PROPGRID ;




Create category item:

CATEGORY <cName>
[ ID <
id> ]

or

DEFINE CATEGORY <cName
[ ID <
id> ]

END CATEGORY


Create data item:

PROPERTYITEM <cName>
[ OF | PARENT <
category> ]
ITEMTYPE <
ctype>
VALUE <
cValue>
[ ITEMDATA <
caData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <
cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM <cName>
[ OF | PARENT <
category> ]
ITEMTYPE <
ctype>
VALUE <
cValue>
[ ITEMDATA <
caData> ]
WHEN <
lEnableValue>
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <
cVarName> ]
[ DISABLEEDIT ]


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


or another method:

PROPERTYITEM STRING <cName>
VALUE <
cValue>
[ ITEMDATA <InputMask> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM INTEGER <cName>
VALUE <
nValue>
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM DOUBLE <cName>
VALUE <
nDoubleValue>
[ ITEMDATA <
cInputMask> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM SYSCOLOR <cName>
VALUE <
cSysColorName>
[ ITEMDATA <aSysColorData> ]
[
DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM COLOR <cName>
VALUE <
cColorArray>
[ ITEMDATA <
aColorData> ]
[ DISABLED ]
[ ID <id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM LOGIC <cName>
VALUE <
cLogicValue>
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM DATE <cName>
VALUE <
cDateValue>
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM FONT <cName>
VALUE <
cFontData>
[ ITEMDATA <
aFontData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM ENUM <cName>
VALUE <
cData>
[ ITEMDATA <
aEnumData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM LIST <cName>
VALUE <
cData>
[ ITEMDATA <
aEnumData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <
cVarName> ]


PROPERTYITEM FLAG <cName>
VALUE <
cListData>
[ ITEMDATA <
aListData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM SYSINFO <cName>
[ VALUE <
cData> ]
[ ITEMDATA <
cTypeInfo> ]
[ DISABLED ]
[ ID <i
d> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]

Note:
<cTypeInfo> - Constants:  "SYSTEM" or "USERHOME" or "USERID" or "USERNAME"


PROPERTYITEM IMAGE <cName>
VALUE <
cData>
[ ITEMDATA <
cFilterData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM CHECK <cName>
VALUE <
cData>
[ ITEMDATA <
cData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]


PROPERTYITEM SIZE <cName>
VALUE <
cData>
[ ITEMDATA <
cData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM ARRAY <cName>
VALUE <
cData>
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM FILE <cName>
VALUE <
cData>
[ ITEMDATA <
cFilterData> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM FOLDER <cName>
VALUE <
cPathData>
[ ITEMDATA <
cTitle> ]
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <
cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM USERFUN <cName>
[ VALUE <
cValue> ]
ITEMDATA <
cbDataFun>
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <
cVarName> ]
[ DISABLEEDIT ]


PROPERTYITEM PASSWORD <cName>
VALUE <
cValue> ]
[ ITEMDATA <
cKeyPass>
[ DISABLED ]
[ ID <
id> ]
[ INFO <
cInfo> ]
[ VARNAME <
cVarName> ]
[ DISABLEEDIT ]