home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / edectl / frmmain.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-07-16  |  4.3 KB  |  135 lines

  1. VERSION 5.00
  2. Object = "{597F0D03-FE03-11D0-9F5E-B42103C10710}#1.0#0"; "EDGECTL.OCX"
  3. Begin VB.Form frmMain 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Edge Control Example"
  6.    ClientHeight    =   2496
  7.    ClientLeft      =   36
  8.    ClientTop       =   264
  9.    ClientWidth     =   4908
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   2496
  14.    ScaleWidth      =   4908
  15.    ShowInTaskbar   =   0   'False
  16.    StartUpPosition =   2  'CenterScreen
  17.    Begin VB.CommandButton cmdExample 
  18.       Caption         =   "Re&al Life Example"
  19.       Height          =   492
  20.       Left            =   3600
  21.       TabIndex        =   8
  22.       Top             =   960
  23.       Width           =   1092
  24.    End
  25.    Begin VB.CommandButton cmdClose 
  26.       Cancel          =   -1  'True
  27.       Caption         =   "Close"
  28.       Default         =   -1  'True
  29.       Height          =   372
  30.       Left            =   3600
  31.       TabIndex        =   7
  32.       Top             =   240
  33.       Width           =   1092
  34.    End
  35.    Begin VB.ComboBox cmboEdgeStyle 
  36.       Height          =   288
  37.       ItemData        =   "frmMain.frx":0000
  38.       Left            =   1200
  39.       List            =   "frmMain.frx":0010
  40.       Sorted          =   -1  'True
  41.       Style           =   2  'Dropdown List
  42.       TabIndex        =   6
  43.       Top             =   240
  44.       Width           =   2052
  45.    End
  46.    Begin EDGECTLLib.EdgeCtl ecMain 
  47.       Height          =   1452
  48.       Left            =   240
  49.       TabIndex        =   0
  50.       Top             =   840
  51.       Width           =   3012
  52.       _Version        =   65536
  53.       _ExtentX        =   5313
  54.       _ExtentY        =   2561
  55.       _StockProps     =   1
  56.       EdgeLeft        =   -1  'True
  57.       EdgeRight       =   -1  'True
  58.       EdgeTop         =   -1  'True
  59.       Begin VB.CheckBox chkRight 
  60.          Alignment       =   1  'Right Justify
  61.          Caption         =   "Edge&Right"
  62.          Height          =   252
  63.          Left            =   1800
  64.          TabIndex        =   4
  65.          Top             =   600
  66.          Width           =   1092
  67.       End
  68.       Begin VB.CheckBox chkLeft 
  69.          Caption         =   "Edge&Left"
  70.          Height          =   252
  71.          Left            =   120
  72.          TabIndex        =   3
  73.          Top             =   600
  74.          Width           =   1092
  75.       End
  76.       Begin VB.CheckBox chkBottom 
  77.          Caption         =   "Edge&Bottom"
  78.          Height          =   252
  79.          Left            =   1080
  80.          TabIndex        =   2
  81.          Top             =   1080
  82.          Width           =   1212
  83.       End
  84.       Begin VB.CheckBox chkTop 
  85.          Caption         =   "Edge&Top"
  86.          Height          =   252
  87.          Left            =   1080
  88.          TabIndex        =   1
  89.          Top             =   120
  90.          Width           =   1092
  91.       End
  92.    End
  93.    Begin VB.Label lblEdgeStyle 
  94.       Caption         =   "&Edge Style:"
  95.       Height          =   252
  96.       Left            =   240
  97.       TabIndex        =   5
  98.       Top             =   240
  99.       Width           =   972
  100.    End
  101. Attribute VB_Name = "frmMain"
  102. Attribute VB_GlobalNameSpace = False
  103. Attribute VB_Creatable = False
  104. Attribute VB_PredeclaredId = True
  105. Attribute VB_Exposed = False
  106. Private Sub chkBottom_Click()
  107.     ecMain.EdgeBottom = IIf(chkBottom.Value = 1, True, False)
  108. End Sub
  109. Private Sub chkLeft_Click()
  110.     ecMain.EdgeLeft = IIf(chkLeft.Value = 1, True, False)
  111. End Sub
  112. Private Sub chkRight_Click()
  113.     ecMain.EdgeRight = IIf(chkRight.Value = 1, True, False)
  114. End Sub
  115. Private Sub chkTop_Click()
  116.     ecMain.EdgeTop = IIf(chkTop.Value = 1, True, False)
  117. End Sub
  118. Private Sub cmboEdgeStyle_Click()
  119.     ecMain.EdgeStyle = cmboEdgeStyle.ListIndex
  120. End Sub
  121. Private Sub cmdClose_Click()
  122.     End
  123. End Sub
  124. Private Sub cmdExample_Click()
  125.     MsgBox "This example was taken from Word 97", vbOKOnly + vbInformation, "Edge"
  126.     frmExample.Show 1
  127. End Sub
  128. Private Sub Form_Load()
  129.     chkBottom.Value = IIf(ecMain.EdgeBottom, 1, 0)
  130.     chkLeft.Value = IIf(ecMain.EdgeLeft, 1, 0)
  131.     chkRight.Value = IIf(ecMain.EdgeRight, 1, 0)
  132.     chkTop.Value = IIf(ecMain.EdgeTop, 1, 0)
  133.     cmboEdgeStyle.ListIndex = ecMain.EdgeStyle
  134. End Sub
  135.