Difference between revisions of "Grid"

From Lianjapedia
Jump to: navigation, search
m (Yvonne.milne moved page Visage Application Framework - Grid to Grid without leaving a redirect)
Line 1: Line 1:
 +
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 +
 
====Properties====
 
====Properties====
  
Line 9: Line 11:
 
!width="50%"|Description
 
!width="50%"|Description
 
|-
 
|-
|Rowcount
+
|RowCount
 
|RW
 
|RW
|
+
|Numeric
|
+
|Number of rows
 
|-
 
|-
|Rowheight
+
|RowHeight
 
|RW
 
|RW
|
+
|Numeric
|
+
|Row height in pixels
 
|-
 
|-
|Activerow
+
|ActiveRow
 
|RW
 
|RW
|
+
|Numeric
|
+
|Currently selected row
 
|-
 
|-
|Activecolumn
+
|ActiveColumn
 
|RW
 
|RW
|
+
|Numeric
|
+
|Currently selected column
 
|-
 
|-
|Columncount
+
|ColumnCount
 
|RW
 
|RW
|
+
|Numeric
|
+
|Number of columns
 
|-
 
|-
|Gridlines
+
|GridLines
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether grid lines are displayed
 
|-
 
|-
|Alternatingrowcolors
+
|AlternatingRowColors
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether rows have alternating background colors
 
|-
 
|-
 
|Readonly
 
|Readonly
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether grid is readonly
 
|-
 
|-
 
|Wordwrap
 
|Wordwrap
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether text is word-wrapped
 
|-
 
|-
 
|Scrollbars
 
|Scrollbars
 
|RW
 
|RW
|
+
|Numeric
|
+
|Scrollbars displayed: 0 = none, 1 = horizontal, 2 = vertical
 
|-
 
|-
|Relativerow
+
|RelativeRow
 
|R
 
|R
|
+
|Numeric
|
+
|Currently selected row relative to the grid display
 
|-
 
|-
|Relativecolumn
+
|RelativeColumn
 
|R
 
|R
|
+
|Numeric
|
+
|Currently selected column relative to the grid display
 
|-
 
|-
|Headerheight
+
|HeaderHeight
 
|RW
 
|RW
|
+
|Numeric
|
+
|Column header height in pixels
 
|-
 
|-
|Gridlinecolor
+
|GridLineColor
 
|RW
 
|RW
|
+
|Numeric
|
+
|Color of grid lines
 
|-
 
|-
|Recordsource
+
|RecordSource
 
|RW
 
|RW
|
+
|Character
|
+
|Source of data to which the grid is bound
 
|-
 
|-
|Recordsourcetype
+
|RecordSourceType
 
|RW
 
|RW
|
+
|Numeric
|
+
|Data source type: 0 = table, 1 = alias, 4 = SQL statement
 
|-
 
|-
|Recordmark
+
|RowSource
 
|RW
 
|RW
|
+
|Character
|
+
|Source of data to which the grid is bound
 
|-
 
|-
|Rowcolchange
+
|RowSourceType
 
|RW
 
|RW
|
+
|Numeric
|
+
|Data source type: 0 = table, 1 = alias, 4 = SQL statement
 
|-
 
|-
|Viewmode
+
|RecordMark
 
|RW
 
|RW
|
+
|Numeric
|
+
|Whether record number column is displayed: 0 (False), 1 (True)
 +
|-
 +
|valign="top"|RowColChange
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|Type of cell movement made: 0 = no change, 1 = row change, 2 = column change, 3 = row and column change
 +
|-
 +
|valign="top"|ViewMode
 +
|valign="top"|RW
 +
|valign="top"|Boolean
 +
|valign="top"|View mode for split grids: 0 = grid view, 1 = form view, 2 = split view
 
|-
 
|-
 
|Relatedform
 
|Relatedform
Line 111: Line 123:
 
|Picture
 
|Picture
 
|RW
 
|RW
|
+
|Character
|
+
|Filename of background image
 +
|-
 +
|Recno
 +
|R
 +
|Numeric
 +
|Current record number
 +
|-
 +
|Rowid
 +
|R
 +
|Numeric
 +
|Current record number
 
|-
 
|-
 
|}
 
|}
Line 125: Line 147:
 
!width="50%"|Description
 
!width="50%"|Description
 
|-
 
|-
|Addcolumn
+
|AddColumn
|
+
|column as Numeric
|
+
|Add a column at the specified column position
 
|-
 
|-
|Removecolumn
+
|RemoveColumn
|
+
|column as Numeric
|
+
|Remove a column at the specified column position
 
|-
 
|-
|Addobject
+
|AddObject
 
|
 
|
 
|
 
|
 
|-
 
|-
|Removeobject
+
|RemoveObject
 
|
 
|
 
|
 
|

Revision as of 13:17, 21 December 2012

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common properties plus the following:

Property Access (R/RW) Value Description
RowCount RW Numeric Number of rows
RowHeight RW Numeric Row height in pixels
ActiveRow RW Numeric Currently selected row
ActiveColumn RW Numeric Currently selected column
ColumnCount RW Numeric Number of columns
GridLines RW Boolean Whether grid lines are displayed
AlternatingRowColors RW Boolean Whether rows have alternating background colors
Readonly RW Boolean Whether grid is readonly
Wordwrap RW Boolean Whether text is word-wrapped
Scrollbars RW Numeric Scrollbars displayed: 0 = none, 1 = horizontal, 2 = vertical
RelativeRow R Numeric Currently selected row relative to the grid display
RelativeColumn R Numeric Currently selected column relative to the grid display
HeaderHeight RW Numeric Column header height in pixels
GridLineColor RW Numeric Color of grid lines
RecordSource RW Character Source of data to which the grid is bound
RecordSourceType RW Numeric Data source type: 0 = table, 1 = alias, 4 = SQL statement
RowSource RW Character Source of data to which the grid is bound
RowSourceType RW Numeric Data source type: 0 = table, 1 = alias, 4 = SQL statement
RecordMark RW Numeric Whether record number column is displayed: 0 (False), 1 (True)
RowColChange RW Numeric Type of cell movement made: 0 = no change, 1 = row change, 2 = column change, 3 = row and column change
ViewMode RW Boolean View mode for split grids: 0 = grid view, 1 = form view, 2 = split view
Relatedform RW
Picture RW Character Filename of background image
Recno R Numeric Current record number
Rowid R Numeric Current record number

Methods

This class supports the Common methods plus the following:

Method Args Description
AddColumn column as Numeric Add a column at the specified column position
RemoveColumn column as Numeric Remove a column at the specified column position
AddObject
RemoveObject
Columns
Clear
Autofit
Doscroll
Activatecell
Additem
Additems
Sort
Search

Events

This class supports the Common events plus the following:

Event Args Description