home *** CD-ROM | disk | FTP | other *** search
- Verona July 221, 1993
-
-
-
- HIT_GRID Version 2.0 (Visual Basic 3.0)
- ---------------------------------------
- (for griglia.dll and d_grid.dll)
-
-
- A) Standard Properties
- ----------------------
- Please refer to Standard Grid Properties for documentation. (With the exception
- of the Picture and GridLineWidth properties).
-
-
- B) New Properties
- -----------------
-
- 1) CursorRow
- CursorCol
-
- Determine the cursor cell in a grid. Not available at design time. At every
- cursor movement (by means of mouse or keyboard actions), both the cursor cell
- properties and the active cell properties are set.
-
- 2) EnableCol
- EnableRow
-
- Determine whether a grid column, or a grid row can be disabled or enabled
- at run time. Not available at run time.
-
- 3) AccessCol
- AccessRow
-
- Determine whether a grid column, or a grid row can be accessed by mouse or
- keyboard movement. Not available at run time.
-
- 4) EnableEdit
-
- Enum property. Valid values:
- 0 - Disable
- edit box on top of grid control is visible and grid editing is disabled
- 1 - Enabled
- edit box on top of grid control is visible and grid editing is enabled
- 3 - Erase
- edit box on top of grid control is not visible however editing is enabled
- 4 - Erase / disable
- edit box on top of grid control is not visible and grid editing is disabled
- 5) Author
- Company
- Address
- Donation
-
- Provide infos about software writer.
-
- 6) WrapRow
- WrapCol
-
- Determine whether a grid column, or a grid row wrap text in multilines.
-
-
- C) Standard Events
- ------------------
- Please refer to Standard Grid Events for documentation.
-
-
- D) New Events
- -------------
-
- 1) Change
-
- It occurs every time SelChange, or RowColChange events occur. It provides
- info about the cell previous values or positions.
-
- Arguments:
- Row previous row value
- Col previous col value
- Text previous cell text content.
-
-
- E) C Language APIs
- ------------------
-
- E.1) GRIGLIA.DLL (Visual Basic 3.0 and Visual C++ 1.0)
-
- Provides grid functionality and stores text strings internally.
-
- 1) VOID FAR PASCAL _export RepaintGriglia (HWND hWnd)
- Descr: Repaint whole grid
- Args : hWnd grid control handle
-
- 2) VOID FAR PASCAL _export RepaintGrigliaBlock (HWND hWnd,
- UINT nLeftCol,
- UINT nTopRow,
- UINT nRightCol,
- UINT nBottomRow);
- Descr: Repaint a grid block
- Args: hWnd grid control handle
- nLeftCol block left column
- nTopRow block row
- nRightCol block right column
- nBottomRow block bottom row
-
- 3) BOOL FAR PASCAL _export GetGrigliaProperty (HWND hWnd,
- USHORT nProp,
- LPVOID lpData);
- BOOL FAR PASCAL _export SetGrigliaProperty (HWND,
- USHORT nProp,
- LPVOID lpData);
-
- Descr: Retrieves or sets grid properties
- Args: hWnd grid control handle
- nProp property ID (see below)
- lpData to be retrieved or set (see CDK documentation);
-
- IPROP_GRIGLIA_ROWS 0x0017
- IPROP_GRIGLIA_COLS 0x0018
- IPROP_GRIGLIA_FIXEDROWS 0x0019
- IPROP_GRIGLIA_FIXEDCOLS 0x001A
- IPROP_GRIGLIA_ROW 0x001B
- IPROP_GRIGLIA_COL 0x001C
- IPROP_GRIGLIA_ROWHEIGHT 0x001D
- IPROP_GRIGLIA_COLWIDTH 0x001E
- IPROP_GRIGLIA_TOPROW 0x001F
- IPROP_GRIGLIA_LEFTCOL 0x0020
- IPROP_GRIGLIA_CURSORROW 0x0021
- IPROP_GRIGLIA_CURSORCOL 0x0022
- IPROP_GRIGLIA_TEXT 0x0023
- IPROP_GRIGLIA_CLIP 0x0024
- IPROP_GRIGLIA_SELSTARTROW 0x0025
- IPROP_GRIGLIA_SELENDROW 0x0026
- IPROP_GRIGLIA_SELSTARTCOL 0x0027
- IPROP_GRIGLIA_SELENDCOL 0x0028
- IPROP_GRIGLIA_ENABLECOL 0x0029
- IPROP_GRIGLIA_ENABLEROW 0x002A
- IPROP_GRIGLIA_ACCESSCOL 0x002B
- IPROP_GRIGLIA_ACCESSROW 0x002C
- IPROP_GRIGLIA_ENABLEEDIT 0x002D
- IPROP_GRIGLIA_ENABLESCROLLBARS 0x002E
-
-
- 4) BOOL FAR PASCAL _export PutText (HWND hWnd,
- WORD wRow,
- WORD wCol,
- LPSTR lpText);
-
- Descr: Set cell text
- Args: hWnd grid control handle
- wRow cell row
- wCol cell col
- lpText string to write
-
- 5) LPSTR FAR PASCAL _export GetText (HWND hWnd,
- WORD wRow,
- WORD wCol);
-
- Descr: Get cell text
- Args: hWnd grid control handle
- wRow cell row
- wCol cell col
-
-
- E.2) D_GRID.DLL (Visual Basic 3.0 and Visual C++ 1.0)
-
- Provides grid functionality and uses callback functions to
- set or get grid cell text.
-
- 1) VOID FAR PASCAL _export dRepaintGriglia (HWND hWnd)
- Descr: Repaint whole grid
- Args : hWnd grid control handle
-
- 2) VOID FAR PASCAL _export dRepaintGrigliaBlock (HWND hWnd,
- UINT nLeftCol,
- UINT nTopRow,
- UINT nRightCol,
- UINT nBottomRow);
- Descr: Repaint a grid block
- Args: hWnd grid control handle
- nLeftCol block left column
- nTopRow block row
- nRightCol block right column
- nBottomRow block bottom row
-
- 3) BOOL FAR PASCAL _export dGetGrigliaProperty (HWND hWnd,
- USHORT nProp,
- LPVOID lpData);
- BOOL FAR PASCAL _export dSetGrigliaProperty (HWND,
- USHORT nProp,
- LPVOID lpData);
-
- Descr: Retrieves or sets grid properties
- Args: hWnd grid control handle
- nProp property ID (see below)
- lpData to be retrieved or set (see CDK documentation);
-
- IPROP_GRIGLIA_ROWS 0x0017
- IPROP_GRIGLIA_COLS 0x0018
- IPROP_GRIGLIA_FIXEDROWS 0x0019
- IPROP_GRIGLIA_FIXEDCOLS 0x001A
- IPROP_GRIGLIA_ROW 0x001B
- IPROP_GRIGLIA_COL 0x001C
- IPROP_GRIGLIA_ROWHEIGHT 0x001D
- IPROP_GRIGLIA_COLWIDTH 0x001E
- IPROP_GRIGLIA_TOPROW 0x001F
- IPROP_GRIGLIA_LEFTCOL 0x0020
- IPROP_GRIGLIA_CURSORROW 0x0021
- IPROP_GRIGLIA_CURSORCOL 0x0022
- IPROP_GRIGLIA_TEXT 0x0023
- IPROP_GRIGLIA_CLIP 0x0024
- IPROP_GRIGLIA_SELSTARTROW 0x0025
- IPROP_GRIGLIA_SELENDROW 0x0026
- IPROP_GRIGLIA_SELSTARTCOL 0x0027
- IPROP_GRIGLIA_SELENDCOL 0x0028
- IPROP_GRIGLIA_ENABLECOL 0x0029
- IPROP_GRIGLIA_ENABLEROW 0x002A
- IPROP_GRIGLIA_ACCESSCOL 0x002B
- IPROP_GRIGLIA_ACCESSROW 0x002C
- IPROP_GRIGLIA_ENABLEEDIT 0x002D
- IPROP_GRIGLIA_ENABLESCROLLBARS 0x002E
-
-
- 4) BOOL FAR PASCAL _export dPutText (HWND hWnd,
- WORD wRow,
- WORD wCol,
- LPSTR lpText);
-
- Descr: Set cell text
- Args: hWnd grid control handle
- wRow cell row
- wCol cell col
- lpText string to write
-
- 5) LPSTR FAR PASCAL _export dGetText (HWND hWnd,
- WORD wRow,
- WORD wCol);
-
- Descr: Get cell text
- Args: hWnd grid control handle
- wRow cell row
- wCol cell col
-
- 6) BOOL FAR PASCAL _export SetCallBackEntry (HWND hWnd,
- WORD nFunction,
- FARPROC pFunc);
-
- Descr: Define callback functions
- Args: hWnd grid control handle
- nFunction function ID (see below)
- #define ICALLBACK_GETCELLTEXT 0x0000
- #define ICALLBACK_PUTCELLTEXT 0x0001
- pFunc pointer to function to provide or retrieve text.
- The function args are:
-
- a) ICALLBACK_GETCELLTEXT
- LPSTR (*lpGetCellText) (WORD wRow, WORD wCol)
-
- a) ICALLBACK_PUTCELLTEXT
- BOOL (*lpPutCellText) (WORD wRow, WORD wCol, LPSTR lpText)
-