home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{597F0D03-FE03-11D0-9F5E-B42103C10710}#1.0#0"; "EDGECTL.OCX"
- Begin VB.Form frmMain
- BorderStyle = 3 'Fixed Dialog
- Caption = "Edge Control Example"
- ClientHeight = 2496
- ClientLeft = 36
- ClientTop = 264
- ClientWidth = 4908
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2496
- ScaleWidth = 4908
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton cmdExample
- Caption = "Re&al Life Example"
- Height = 492
- Left = 3600
- TabIndex = 8
- Top = 960
- Width = 1092
- End
- Begin VB.CommandButton cmdClose
- Cancel = -1 'True
- Caption = "Close"
- Default = -1 'True
- Height = 372
- Left = 3600
- TabIndex = 7
- Top = 240
- Width = 1092
- End
- Begin VB.ComboBox cmboEdgeStyle
- Height = 288
- ItemData = "frmMain.frx":0000
- Left = 1200
- List = "frmMain.frx":0010
- Sorted = -1 'True
- Style = 2 'Dropdown List
- TabIndex = 6
- Top = 240
- Width = 2052
- End
- Begin EDGECTLLib.EdgeCtl ecMain
- Height = 1452
- Left = 240
- TabIndex = 0
- Top = 840
- Width = 3012
- _Version = 65536
- _ExtentX = 5313
- _ExtentY = 2561
- _StockProps = 1
- EdgeLeft = -1 'True
- EdgeRight = -1 'True
- EdgeTop = -1 'True
- Begin VB.CheckBox chkRight
- Alignment = 1 'Right Justify
- Caption = "Edge&Right"
- Height = 252
- Left = 1800
- TabIndex = 4
- Top = 600
- Width = 1092
- End
- Begin VB.CheckBox chkLeft
- Caption = "Edge&Left"
- Height = 252
- Left = 120
- TabIndex = 3
- Top = 600
- Width = 1092
- End
- Begin VB.CheckBox chkBottom
- Caption = "Edge&Bottom"
- Height = 252
- Left = 1080
- TabIndex = 2
- Top = 1080
- Width = 1212
- End
- Begin VB.CheckBox chkTop
- Caption = "Edge&Top"
- Height = 252
- Left = 1080
- TabIndex = 1
- Top = 120
- Width = 1092
- End
- End
- Begin VB.Label lblEdgeStyle
- Caption = "&Edge Style:"
- Height = 252
- Left = 240
- TabIndex = 5
- Top = 240
- Width = 972
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub chkBottom_Click()
- ecMain.EdgeBottom = IIf(chkBottom.Value = 1, True, False)
- End Sub
- Private Sub chkLeft_Click()
- ecMain.EdgeLeft = IIf(chkLeft.Value = 1, True, False)
- End Sub
- Private Sub chkRight_Click()
- ecMain.EdgeRight = IIf(chkRight.Value = 1, True, False)
- End Sub
- Private Sub chkTop_Click()
- ecMain.EdgeTop = IIf(chkTop.Value = 1, True, False)
- End Sub
- Private Sub cmboEdgeStyle_Click()
- ecMain.EdgeStyle = cmboEdgeStyle.ListIndex
- End Sub
- Private Sub cmdClose_Click()
- End
- End Sub
- Private Sub cmdExample_Click()
- MsgBox "This example was taken from Word 97", vbOKOnly + vbInformation, "Edge"
- frmExample.Show 1
- End Sub
- Private Sub Form_Load()
- chkBottom.Value = IIf(ecMain.EdgeBottom, 1, 0)
- chkLeft.Value = IIf(ecMain.EdgeLeft, 1, 0)
- chkRight.Value = IIf(ecMain.EdgeRight, 1, 0)
- chkTop.Value = IIf(ecMain.EdgeTop, 1, 0)
- cmboEdgeStyle.ListIndex = ecMain.EdgeStyle
- End Sub
-