home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
- Begin VB.Form FStringForm
- Caption = "FormatString Demo"
- ClientHeight = 3735
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5370
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- ScaleHeight = 3735
- ScaleWidth = 5370
- StartUpPosition = 3 'Windows Default
- Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
- Height = 2805
- Left = 90
- TabIndex = 3
- Top = 135
- Width = 5145
- _ExtentX = 9075
- _ExtentY = 4948
- _Version = 393216
- Rows = 20
- Cols = 5
- End
- Begin VB.CommandButton Command3
- Caption = "Both"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 465
- Left = 3750
- TabIndex = 2
- Top = 3135
- Width = 1455
- End
- Begin VB.CommandButton Command2
- Caption = "Fixed Column"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 465
- Left = 1920
- TabIndex = 1
- Top = 3150
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "Fixed Row"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 465
- Left = 105
- TabIndex = 0
- Top = 3150
- Width = 1455
- End
- Attribute VB_Name = "FStringForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- ' ******************************
- ' ******************************
- ' ** MASTERING VB6 **
- ' ** by Evangelos Petroutos **
- ' ** SYBEX, 1998 **
- ' ******************************
- ' ******************************
- Private Sub Command1_Click()
- s$ = "<Country|^Athletes|^Gold|^Silver|^Bronze"
- MSFlexGrid1.FormatString = s$
- MSFlexGrid1.ColWidth(0) = TextWidth("UNITED STATES")
- MSFlexGrid1.ColWidth(2) = MSFlexGrid1.ColWidth(4)
- MSFlexGrid1.ColWidth(3) = MSFlexGrid1.ColWidth(4)
- End Sub
- Private Sub Command2_Click()
- s$ = ";|Country|Athletes|Gold|Silver|Bronze"
- MSFlexGrid1.FormatString = s$
- End Sub
- Private Sub Command3_Click()
- s$ = "<Country|^Athletes|^Gold|^Silver|^Bronze;|"
- s$ = s$ & "Argentina|Belgium | Denmark | Equador | France | Germany"
- MSFlexGrid1.FormatString = s$
- MSFlexGrid1.ColWidth(0) = TextWidth("UNITED STATES")
- MSFlexGrid1.ColWidth(2) = MSFlexGrid1.ColWidth(4)
- MSFlexGrid1.ColWidth(3) = MSFlexGrid1.ColWidth(4)
- End Sub
-