home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_BAS
/
DBGRID.ZIP
/
DEMOFORM.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1994-01-16
|
10KB
|
276 lines
DemoForm
DBT Grid Demonstration Program
Wingdings
Form1,
RowLabel
RowPosition
ColumnLabel
Column:
ColumnPosition
DBTGrid1
DBTGrid
&(Copyright (C)-1993, by Douglas A. Bebber
MNU_GridSettings
&Grid
MNU_ColumnLabels
&Column labels
MNU_ColLabelsNone
&None
MNU_ColLabelLetters
&Letters
MNU_ColLabNum
&Numbers
MNU_ColLabelUser
&User defined
MNU_Edit
&Edit mode
MNU_EditOn
MNU_EditOff
MNU_Font
&Fonts
MNU_FBold
MNU_FBT
MNU_FBF
False
MNU_FontName
MNU_Arial
Arial
MNU_Courier
Courier
MNU_Fences
Fences
MNU_Fixedsys
Fixedsys
MNU_Modern
Modern
MNU_MSS
MS Sans Serif
MNU_MSSerif
MS Serif
MNU_MTExtra
MT Extra
MNU_Roman
Roman
MNU_Script
Script
MNU_SmallFonts
Small Fonts
MNU_Symbol
Symbol
MNU_System
System
MNU_Terminal
Terminal
MNU_TNR
Times New Roman
MNU_WDG
Wingdings
# MNU_Horiz
&Horizontals
MNU_HorizOn
MNU_HorizOff
MNU_RowLab
&Row labels
MNU_RowLabNo
&None
MNU_RowLabBut
Row &buttons
MNU_RowLabNum
Row &numbers
* MNU_Verts
&Verticals
MNU_RowVertOn
MNU_VertsOff
MNU_Quit
&Quit
Label1_Click
MNU_Quit_Click
Form_Click
@ Form_Load"
DBTGrid1
Columns
RowSelection3
SetColumnHeadings
FillGridr
Column
ColumnHeading
CellStyleY
ColumnStringLengthD
Textf
Form_Resize
Height
Form1
Widthv
DemoForm
DBTGrid1_CellDoubleClicked
DBTGrid1_GridPositionChanged
ColumnPosition
RowPosition
MNU_RowVertOn_Click
Verticals
MNU_VertsOff_Click/
MNU_HorizOn_Click4
HorizontalsE
MNU_HorizOff_Clicke
MNU_EditOn_Click
EditModez
MNU_EditOff_Click
MNU_ColLabelsNone_Click
ColumnLabels
MNU_ColLabelLetters_Click
MNU_ColLabelUser_Click
MNU_ColLabNum_Click
MNU_RowLabNo_Click
RowLabels-
MNU_RowLabBut_Click\
MNU_RowLabNum_Click
DBTGrid1_GridHScroll
MNU_Arial_Click
FontName
MNU_Courier_Click
MNU_Fences_Click
MNU_Fixedsys_Click
MNU_Modern_Click
MNU_MSS_Click
DBTGrid1_CellValueChanged
DBTGrid*
MNU_MSSerif_Click?
MNU_MTExtra_ClickR
MNU_Roman_Clickf
MNU_Script_Click~
MNU_SmallFonts_Click
MNU_Symbol_Click
MNU_System_Click
MNU_Terminal_Click
MNU_TNR_Click
MNU_WDG_Click
MNU_FBF_Click-
FontBold
MNU_FBT_Click;
MNU_FBF
CheckedO
MNU_FBT
MNU_EditOn
MNU_EditOff
MNU_ColLabelUserr
MNU_ColLabelNone
MNU_ColLabelsNone
MNU_ColLabelsNum#
MNU_ColLabNum
MNU_ColLabelLetters
MNU_HoizOn
MNU_HorizOn
MNU_HorizOff
MNU_RowVertOn
MNU_RowVertOff
MNU_VertsOff
MNU_RowLabNum
MNU_Row
MNU_RowLabNo
MNU_RowLabBut
MNU_Quit_Click
Form_Load
Define the number of rows and columns in the Grid.
Let the user select single rowso
Now label the Column Headings (keep the defaulti
ColumnHeadingStyle = 0-Centered)
OK the Grid's column format has been set.e
Lets put some data in it!a
SetColumnHeadings
Start with Column #1
Customer No.
Center text in the Celle
Move to Column #2e
Last Name"
Left justify text in the Cellt
Move to Column #3
First Name
Left justify text in the Cellt
Move to Column #4
Center text in the Celle
Move to Column #5e
Address"
Left justify text in the Cellt
Move to Column #6
Left justify text in the Cellt
Move to Column #7
State"
Center text in the Celle
Move to Column #8e
Center text in the Celle
Move to Column #9e
Phone"
Center text in the Celle
FillGrid
123459
1212 Westwood Ave.
Moline
61265"
(309) 762-4444
Move to Next row
623857
Smith"
4733 Carry Street"
Davenport"
52803"
(319) 326-8088
Move to Next row
883853
1114 Sparrow Road"
Rock Island"
61201"
(309) 788-8086
Move back to Row 0 Column 0
Form_Resize
DBTGrid1_GridPositionChanged
MNU_RowVertOn_Click
MNU_VertsOff_Click
MNU_HorizOn_Click
MNU_HorizOff_Click
MNU_EditOn_Click
MNU_EditOff_Click
MNU_ColLabelsNone_Click
MNU_ColLabelLetters_Click
MNU_ColLabelUser_Click
MNU_ColLabNum_Click
MNU_RowLabNo_Click
MNU_RowLabBut_Click
MNU_RowLabNum_Click
DBTGrid1_CellDoubleClicked
Cell Value:
MNU_Arial_Click
Arial"
MNU_Courier_Click
Courier"
MNU_Fences_Click
Fences
MNU_Fixedsys_Click
Fixedsys
MNU_Modern_Click
Modern
MNU_MSS_Click
MS Sans Serif"
DBTGrid1_CellValueChanged
MNU_MSSerif_Click
MS Serif
MNU_MTExtra_Click
MT Extra
MNU_Roman_Click
Roman"
MNU_Script_Click
Script
MNU_SmallFonts_Click
Small Fonts"
MNU_Symbol_Click
Symbol
MNU_System_Click
System
MNU_Terminal_Click
Terminal
MNU_TNR_Click
Times New Roman"
MNU_WDG_Click
Wingdings"
MNU_FBF_Click
MNU_FBT_Click