The following five functions are used to create standard Windows control to be placed directly onto the application View window. The parameters are the same for each control and are as described below:
COS.CreateStatic - Creates a “static” control in a window
COS.CreateEdit - Creates a “edit” control in a window
COS.CreateListBox - Creates a “list box” control in a window
COS.CreateComboBox - Creates a “combo box” control in a window
COS.CreateButton - Creates a “button” control in a window
On Entry: <cosStyle> contains the style of the control
<cosExStyle> contains the extended style of the control
<cosRow> top position of the control rectangle
<cosCol> left position of the control rectangle
<cosWidth> width of the control rectangle
<cosHeight> height of the control rectangle
<cosCtlId> contains the control ID of the control
<cosCWnd$> contains a handle to the parent window
(cosCTL.PARENTSPECIFIED must be set)
<cosDlgFlags> contains additional modifiers:
cosCTL.RCQCRT - Row/Col are QCRT Rows\Col
cosCTL.WHQCRT - Width/Height are QCRT /Rows/Col
cosCTL.RCCOSWUNITS - Row/Col are COSW units
cosCTL.WHCOSWUNITST - Width/Height are COSW units
cosCTL.COSCOLOR - Color maps to COMET color
cosCTL.RGBCOLOR - Color is COLORREF color
cosCTL.PICTURECTRL - Displays a picture
cosCTL.RCDLGWUNITS - Row/Col are dialog units
cosCTL.WHDLGWUNITST - Width/Height are dialog units
cosCTL.USESEXTSTYLE - Control uses extended style
cosCTL.RCNOMARGINS - Ignore margins
cosCTL.PARENTSPECIFIED - Font is parent window
On Exit: <cosCWnd$> contains a handle to the new control window
COS.DestroyControl - Destroys the specified Window control
On Entry: < cosCtlId> contains the control ID
On Exit:
COS.DestroyAllControls - Destroys all Window controls
On Entry:
On Exit: