home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / vbasic / Data / Utils / fstrip5.exe / %MAINDIR% / ClientArea.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2002-04-18  |  5.8 KB  |  176 lines

  1. VERSION 5.00
  2. Object = "{9973B72E-F1FF-4E96-AA76-225706910672}#4.7#0"; "FlatStrip5.ocx"
  3. Begin VB.Form frmClientArea 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Client Area Demonstration"
  6.    ClientHeight    =   7080
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   7845
  10.    BeginProperty Font 
  11.       Name            =   "Tahoma"
  12.       Size            =   8.25
  13.       Charset         =   0
  14.       Weight          =   400
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    Icon            =   "ClientArea.frx":0000
  20.    LinkTopic       =   "Form1"
  21.    MaxButton       =   0   'False
  22.    MinButton       =   0   'False
  23.    ScaleHeight     =   472
  24.    ScaleMode       =   3  'Pixel
  25.    ScaleWidth      =   523
  26.    StartUpPosition =   2  'CenterScreen
  27.    Begin VB.TextBox txtTab 
  28.       BorderStyle     =   0  'None
  29.       Height          =   1005
  30.       Index           =   0
  31.       Left            =   1665
  32.       MultiLine       =   -1  'True
  33.       ScrollBars      =   2  'Vertical
  34.       TabIndex        =   6
  35.       Text            =   "ClientArea.frx":014A
  36.       Top             =   4770
  37.       Width           =   4155
  38.    End
  39.    Begin VB.ComboBox cboAlignment 
  40.       Height          =   315
  41.       ItemData        =   "ClientArea.frx":0150
  42.       Left            =   3915
  43.       List            =   "ClientArea.frx":015A
  44.       Style           =   2  'Dropdown List
  45.       TabIndex        =   5
  46.       Top             =   6525
  47.       Width           =   2265
  48.    End
  49.    Begin VB.ComboBox cboTabPosition 
  50.       Height          =   315
  51.       ItemData        =   "ClientArea.frx":0179
  52.       Left            =   180
  53.       List            =   "ClientArea.frx":0189
  54.       Style           =   2  'Dropdown List
  55.       TabIndex        =   3
  56.       Top             =   6525
  57.       Width           =   3525
  58.    End
  59.    Begin VB.CommandButton cmdClose 
  60.       Cancel          =   -1  'True
  61.       Caption         =   "C&lose"
  62.       Default         =   -1  'True
  63.       Height          =   330
  64.       Left            =   6480
  65.       TabIndex        =   0
  66.       Top             =   6525
  67.       Width           =   1140
  68.    End
  69.    Begin FlatStripDemonstration.pucTextTip pucTextTip1 
  70.       Height          =   1950
  71.       Left            =   180
  72.       TabIndex        =   1
  73.       Top             =   900
  74.       Width           =   7440
  75.       _ExtentX        =   13123
  76.       _ExtentY        =   3440
  77.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  78.          Name            =   "Tahoma"
  79.          Size            =   8.25
  80.          Charset         =   0
  81.          Weight          =   400
  82.          Underline       =   0   'False
  83.          Italic          =   0   'False
  84.          Strikethrough   =   0   'False
  85.       EndProperty
  86.       Text            =   $"ClientArea.frx":01C7
  87.    End
  88.    Begin FlatStripCtl.FlatStrip ftsDemo 
  89.       Height          =   3120
  90.       Left            =   180
  91.       Top             =   3015
  92.       Width           =   7440
  93.       _ExtentX        =   13123
  94.       _ExtentY        =   5503
  95.       ActiveTab       =   1
  96.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  97.          Name            =   "Tahoma"
  98.          Size            =   8.25
  99.          Charset         =   0
  100.          Weight          =   400
  101.          Underline       =   0   'False
  102.          Italic          =   0   'False
  103.          Strikethrough   =   0   'False
  104.       EndProperty
  105.       TabCount        =   3
  106.       Tab1Caption     =   "Tab #1"
  107.       Tab1Selected    =   -1  'True
  108.       Tab2Caption     =   "Tab #2"
  109.       Tab3Caption     =   "Tab #3"
  110.    End
  111.    Begin VB.Label lblHdr 
  112.       AutoSize        =   -1  'True
  113.       Caption         =   "&Alignment:"
  114.       Height          =   195
  115.       Index           =   1
  116.       Left            =   3915
  117.       TabIndex        =   4
  118.       Top             =   6300
  119.       Width           =   765
  120.    End
  121.    Begin VB.Label lblHdr 
  122.       AutoSize        =   -1  'True
  123.       Caption         =   "&TabPosition:"
  124.       Height          =   195
  125.       Index           =   0
  126.       Left            =   180
  127.       TabIndex        =   2
  128.       Top             =   6300
  129.       Width           =   885
  130.    End
  131.    Begin FlatStripDemonstration.pucLogoPane pucLogoPane1 
  132.       Align           =   1  'Align Top
  133.       Height          =   750
  134.       Left            =   0
  135.       Top             =   0
  136.       Width           =   7845
  137.       _ExtentX        =   13838
  138.       _ExtentY        =   1323
  139.       Picture         =   "ClientArea.frx":0492
  140.    End
  141. Attribute VB_Name = "frmClientArea"
  142. Attribute VB_GlobalNameSpace = False
  143. Attribute VB_Creatable = False
  144. Attribute VB_PredeclaredId = True
  145. Attribute VB_Exposed = False
  146. Option Explicit
  147. Private Sub cboAlignment_Click()
  148.     ftsDemo.Alignment = cboAlignment.ListIndex
  149. End Sub
  150. Private Sub cboTabPosition_Click()
  151.     ftsDemo.TabPosition = cboTabPosition.ListIndex
  152. End Sub
  153. Private Sub cmdClose_Click()
  154.     Unload Me
  155. End Sub
  156. Private Sub Form_Load()
  157.     Dim Item        As FlatTab
  158.     cboTabPosition.ListIndex = ftsDemo.TabPosition
  159.     cboAlignment.ListIndex = ftsDemo.Alignment
  160.     'attach clients
  161.     For Each Item In ftsDemo.FlatTabs
  162.         'create
  163.         If (Item.Index - 1) Then
  164.             Load txtTab(Item.Index - 1)
  165.         End If
  166.         txtTab(Item.Index - 1).Text = "This is the client for tab " & _
  167.         Item.Index & " which has been attached to the tab " & _
  168.         "via the ResizeClient property. As you can see, the " & _
  169.         "TextBox is automatically sized to fit the client area " & _
  170.         "of the FlatStrip control, and is also automatically " & _
  171.         "show or hidden as required."
  172.         'attach
  173.         Set Item.ResizeClient = txtTab(Item.Index - 1)
  174.     Next
  175. End Sub
  176.