home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / stingray / gridapp.txt < prev    next >
Encoding:
Text File  |  1996-05-29  |  6.2 KB  |  179 lines

  1. GridApp sample
  2. --------------
  3.  
  4. GridApp demonstrates the  user interface features of Objective Grid.  
  5. When running the application you will notice the following features:
  6.  
  7. o Formatting cells 
  8.  
  9. o Find and replace 
  10.  
  11. o Undo and redo
  12.  
  13. o Cut, Copy and Paste
  14.  
  15. o Zooming the view
  16.  
  17. o Moving (dragging), Inserting and Removing rows or columns
  18.  
  19. o Working with base styles ("Base Styles"-worksheet)
  20.  
  21. o Changing properties.  For example turning on/off the display of grid lines
  22.  
  23. o Working with several worksheets in a workbook
  24.  
  25. o Open a new window and see how changes are synchronized in the views
  26.  
  27. o Use the grid in a splitter window and split the panes
  28.  
  29. o Printing and print previewing
  30.  
  31. o Saving grid data to and loading grid data from a document 
  32.  
  33. o Customizing headers, footers and page setup
  34.  
  35. o Displaying bitmaps in cells ("Welcome"-worksheet)
  36.  
  37. o Freezing rows/columns or using several row/column headers ("Base Styles"-worksheet)
  38.  
  39. o Covering cells (one cell can span neighboring cells) ("Welcome"-worksheet)
  40.  
  41.  
  42.  
  43. Special Objective Grid concepts that the GridApp sample demonstrates are:
  44.  
  45. o Subclassed controls (e.g.  an ownerdrawn combobox as cell, "Controls"-worksheet) 
  46.   and any CWnd-derived class can be used in the grid,
  47.  
  48. o The grid can be used to browse any external data source (i.e.  dbase files)
  49.  
  50. o The grid can be used as a dialog control in a CDialog 
  51.  
  52. o The grid can be used as a dialog control in a CFormView with printing support
  53.  
  54. If you are executing the GridApp sample on a Japanese Windows 95, you may 
  55. also use the IME window to enter Japanese characters.  Objective Grid fully 
  56. supports international character sets.
  57.  
  58. Running the application
  59. -----------------------
  60.  
  61. When you startup GridApp, a dialog box is displayed.  
  62.  
  63. This dialog gives you following options:
  64.  
  65. o GRIDAP Document.  This will display a workbook with several worksheets. 
  66.  
  67. o CSample1FormView.  This will display the grid as dialog control in a form view.
  68.  
  69. o Dbase Browser document.  This will display the grid connected with an Dbase-file.  
  70.      After clicking this option, an "Open"-dialog will be displayed where you can 
  71.      select a dbase file you can the browse in the grid. 
  72.  
  73.  
  74. GRIDAP Document
  75. ---------------
  76.  
  77. When you select "GridAp Document", a workbook with several worksheets is displayed, 
  78. each demonstrating some features of Objective Grid.  At this point you might want 
  79. to see if you can find all of the Objective Grid user-interface features previously 
  80. mentioned.  Each worksheet is a different view.  If you want to examine the code, 
  81. you should know that the class names for the views are numbered from 
  82. CGridSampleView, CGridSample2View to CGridSample7View (and live in the source 
  83. files gridsvw.cpp to gridsvw7.cpp) in the order they appear on the tab beam. 
  84. Each worksheet has a header with a yellow background at the top-left cell 
  85. which highlights certain features available for that worksheet. 
  86.  
  87. Some features found in all worksheets are: 
  88.  
  89. Enter text in cells; Zoom the views; Find/replace text; Print the grid, 
  90. change the printer settings, header/footer and print preview; 
  91. Serialize all changes to a document (all worksheets and their individual 
  92. printer setting will be serialized); Cut, copy and paste cells; Make cells 
  93. left-aligned, centered or right-aligned by clicking on the toolbar buttons; 
  94. Make cells bold, cursive or underlined by clicking on the toolbar buttons.
  95.  
  96. HereÆs how to find some of the non-intuitive features:
  97.  
  98. o Select a whole row or column and  then click again on the selected row 
  99.   or column and drag it to a new destination.
  100.  
  101. o Double-click on the tabs in the tabbar to change the worksheet name.
  102.  
  103. o Open a splitter view for the active worksheet with View|Splitter.
  104.  
  105. o Select cells and then format them with Format|Cells.
  106.  
  107. o Change the default style for all cells with Format|Styles and then 
  108.   double-click on Standard in the listbox.
  109.  
  110. o Insert rows or columns with Edit|Insert Row and Edit|Insert Column.
  111.  
  112. o Undo commands with <CTRL>+Z and redo commands with <CTRL>+R.
  113.  
  114. o Select cells and adapt the cells size to their contents with 
  115.   Format|Resize Columns or Format|Resize Rows.
  116.  
  117. o Customize the general layout of the view (grid lines color, 
  118.   background etc.) with View|Properties.
  119.  
  120. o Open a second view with Window|New Window.  If you have two views to 
  121.   the same document, both views are synchronized.  In other words, 
  122.   when you change a cell, the second view is automatically updated.
  123.  
  124. o Hide rows or columns by clicking on a grid line in the header area 
  125.   and dragging it until the row height or column width is zero.  When 
  126.   you double-click on the grid line of a hidden row or column the 
  127.   row/column will be unhidden.
  128.  
  129. o Select whole rows or columns and freeze them with View|Freeze Rows 
  130.   or View|Freeze Columns.
  131.  
  132. o Select several cells and define a covered cell with View|Cover Cells.
  133.  
  134.  
  135. CSample1FormView 
  136. ----------------
  137.  
  138. When you select the "CSample1FormView" tab, a form view (CFormView derivative) 
  139. is displayed with a grid as dialog control in the form view. 
  140.  
  141. Some features are: 
  142. Change text in the grid; Resize rows and columns; Select cells; Change printer settings, 
  143. as well as the header and footer; Print and print preview the grid
  144.  
  145.  
  146. Dbase Browser document
  147. ----------------------
  148.  
  149. When you select the "Dbase Browser document" tab, an "Open"-dialog is displayed 
  150. that allows you to select a dbase file to browse. 
  151.  
  152. HereÆs how to find some of the features:
  153.  
  154. o Select a whole column, click again on the selected column and drag it to a new destination.
  155.  
  156. o Select full rows or columns (selecting cells is disabled).
  157.  
  158. o Change the default height for all rows by changing one row's height.
  159.  
  160. o Undo/Redo.
  161.  
  162. o Copy rows to the clipboard.
  163.  
  164. o Print, Print Preview, header/footers.
  165.  
  166. o Serialization.
  167.  
  168. o Find and replace.
  169.  
  170. o Split the view.
  171.  
  172. o Change the general layout of the grid with View|Properties.
  173.  
  174. o Change the base styles for numeric, string or date values with Format|Styles.
  175.  
  176. o Open a second view with Window|New Window.  If you have two views of the same document, both views are synchronized.  In other words, when you change a cell, the second view is automatically updated. 
  177.  
  178.   
  179.