home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_refer / grid_txt / grid.txt next >
Text File  |  1991-07-21  |  3KB  |  88 lines

  1. GRID.TXT
  2. "Explaination of the Grid Control"
  3. by Jonathan Zuck
  4. User Friendly, Inc.
  5.  
  6.         What I have tried to do here is to document the various properties
  7. of the Grid control (including a couple I added), for those who do not
  8. read C.  I am going on the assumption that the properties that appear
  9. in the VB editor are self-evident.  Be sure to let me know if that is
  10. a flawed assumption.  Accordingly, I will be documenting the run-time
  11. properties only.
  12.  
  13.  
  14. The following two properties can be retrieved or set to determine or set
  15. the cell in the grid that currently owns focus. You must change these
  16. settings in order for the TEXT, ROWHEIGHT, COLWIDTH, COLALIGNMENT properties
  17. to have meaning.  Each of these operates on the cell that currently owns
  18. focus.
  19.  
  20. ROW (Int)
  21.         The Row of the Cell that has focus
  22.         This can be both retrieved and set at run-time.
  23.  
  24. COL (Int)
  25.         The Column of the Cell that has focus
  26.         This can be both retrieved and set at run-time.
  27.  
  28. TEXT (String)
  29.         The contents of the current cell.
  30.         This can be both retrieved and set at run-time.
  31.  
  32. ROWHEIGHT (LONG)
  33.         The hight of the row containing the current cell
  34.         This can be both retrieved and set at run-time.
  35.         
  36. COLWIDTH  (LONG)
  37.         The width of the row containing the current cell
  38.         This can be both retrieved and set at run-time.
  39.  
  40. COLALIGNMENT (Int)
  41.         The column alignment of the column of the current cell
  42.         This can be both retrieved and set at run-time.
  43.  
  44. CELLSELECTED (BOOL)
  45.         Returns TRUE/FALSE if any cells are/are not currently selected.
  46.         Read-only at run-time
  47.  
  48. SELSTARTROW (Int)
  49.         The starting row of the selection block
  50.         This can be both retrieved and set at run-time.
  51.  
  52. SELENDROW (Int)
  53.         The ending row of the selection block
  54.         This can be both retrieved and set at run-time.
  55.  
  56. SELSTARTCOL (Int)
  57.         The starting column of the selection block
  58.         This can be both retrieved and set at run-time.
  59.         
  60. SELENDCOL (Int)
  61.         The ending column of the selection block
  62.         This can be both retrieved and set at run-time.
  63.         
  64. CLIP (String)
  65.         The currently select text (tab and CR/LF delimited)
  66.         This can be both retrieved and set at run-time.
  67.         Note: This property can be used to retrieve and save delimited
  68.         text files or perform advise links with EXCEL.
  69.         
  70. TOPROW  (Int) (I added this)
  71.         The Top most visible row in the grid.
  72.         This can be both retrieved and set at run-time.
  73.         
  74. LEFTCOL (Int) (I added this)
  75.         The Left most visible column in the grid
  76.         This can be both retrieved and set at run-time.
  77.  
  78. Note:  I added the above two properties because there was no way to
  79. programatically scroll the grid.  Using these properties, you can force
  80. a particular cell (or just a row or column) to be the visible origin of
  81. the grid.  The top row and left column are contrained by the the number
  82. of fixed rows and columns and the number of remaining rows and columns.
  83. Therefore, you cannot use this to set new titles or to bring the last
  84. row/column to the origin.
  85.  
  86. Hope this helps!
  87. JZ
  88.