Grid Controls
The following lists the mandatory properties for grid controls:
Grid control-id"title"x y width height
Property |
Description |
grid |
Identifies the control as a grid control. |
control-id |
Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window. |
"title" |
Title of the control, contained in quotation marks. |
x |
Horizontal position of the upper-left corner of the control in current units. |
y |
Vertical position of the upper-left corner of the control in current units. |
width |
Width of the control in current units. |
height |
Height of the control in current units. |
The Resource Properties Index identifies and describes the optional properties for this control.
Backgroundcolor
Clientedge
Columnhead
Columns
Columnsep
Disabled
Font
Foregroundcolor
Gridcoltitle
Gridcolwidth
Gridrowdefault
Group
Height
Horizlines
Hscrollbar
Initialcontents
Interspace
Invisible
Longcue
Maxcols
Name
Opaque
Popupmenuid
Raisededge
Rowhead
Rows
Rowsep
Shortcue
Title
Usersize
Vertlines
Vscrollbar
Example
The following example contains a window with two grid controls: the first contains only the mandatory definitions, and the second contains optional settings.
Version "3.0"
Window 1 "Control Window" 0 0 200 100
Begin
Grid 1 "OK" 10 10 50 25
Grid 2 "Done" 50 10 50 25 Begin
Backgroundcolor Rgb(128,255,128)
Foregroundcolor Rgb(64,128,64)
Initialcontents "(1,1):(1,2):(1,3):(1,4):(1,5)-"
"(2,1):(2,2):(2,3):(2,4):(2,5)-"
"(3,1):(3,2):(3,3):(3,4):(3,5)-"
"(4,1):(4,2):(4,3):(4,4):(4,5)-"
"(5,1):(5,2):(5,3):(5,4):(5,5)-"
Rows 5
Columns 5
Maxcols 5
Interspace 2
Font "Helvetica" 12, Bold, CS_DEFAULT
Columnhead 24, 3
Rowhead 24, 4
Usersize Clientedge Raisededge Horizlines
Vertlines Disabled Invisible
End
End