frmPreviewEvenMore.frm
上传用户:eleven0727
上传日期:2009-12-26
资源大小:124k
文件大小:7k
源码类别:

Tab控件

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "*A....prjXTab.vbp"
  3. Begin VB.Form frmPreviewEvenMore 
  4.    BackColor       =   &H00D8E9EC&
  5.    BorderStyle     =   1  'Fixed Single
  6.    Caption         =   "                           :: XTabs :: by Neeraj Agrawal @ PSC ::"
  7.    ClientHeight    =   8010
  8.    ClientLeft      =   45
  9.    ClientTop       =   330
  10.    ClientWidth     =   6930
  11.    BeginProperty Font 
  12.       Name            =   "Verdana"
  13.       Size            =   8.25
  14.       Charset         =   0
  15.       Weight          =   400
  16.       Underline       =   0   'False
  17.       Italic          =   0   'False
  18.       Strikethrough   =   0   'False
  19.    EndProperty
  20.    Icon            =   "frmPreviewEvenMore.frx":0000
  21.    LinkTopic       =   "Form1"
  22.    MaxButton       =   0   'False
  23.    MinButton       =   0   'False
  24.    ScaleHeight     =   8010
  25.    ScaleWidth      =   6930
  26.    StartUpPosition =   3  'Windows Default
  27.    Begin VB.CheckBox chkShowFocusRect 
  28.       BackColor       =   &H00D8E9EC&
  29.       Caption         =   "Show Focus Rect"
  30.       Height          =   225
  31.       Left            =   120
  32.       TabIndex        =   2
  33.       Top             =   5880
  34.       Width           =   1815
  35.    End
  36.    Begin VB.CommandButton cmdPreviewProps 
  37.       Caption         =   "::Test Control Properties::"
  38.       Height          =   285
  39.       Left            =   4170
  40.       TabIndex        =   5
  41.       Top             =   7620
  42.       Width           =   2655
  43.    End
  44.    Begin VB.CommandButton cmdPreviewOwnerDrawn 
  45.       Caption         =   "::Preview Owner Drawn Tabs::"
  46.       Height          =   285
  47.       Left            =   1950
  48.       TabIndex        =   3
  49.       Top             =   6630
  50.       Width           =   3315
  51.    End
  52.    Begin VB.CommandButton cmdBack 
  53.       Caption         =   "::Back::"
  54.       Height          =   285
  55.       Left            =   90
  56.       TabIndex        =   4
  57.       Top             =   7620
  58.       Width           =   2025
  59.    End
  60.    Begin prjXTab.XTab XTab1 
  61.       Height          =   2265
  62.       Left            =   180
  63.       TabIndex        =   0
  64.       Top             =   600
  65.       Width           =   6555
  66.       _ExtentX        =   11562
  67.       _ExtentY        =   3995
  68.       TabCaption(0)   =   "Tab 0"
  69.       TabPicture(0)   =   "frmPreviewEvenMore.frx":000C
  70.       TabCaption(1)   =   "Tab 1"
  71.       TabPicture(1)   =   "frmPreviewEvenMore.frx":0326
  72.       TabCaption(2)   =   "Tab 2"
  73.       TabPicture(2)   =   "frmPreviewEvenMore.frx":0640
  74.       ActiveTabHeight =   40
  75.       InActiveTabHeight=   38
  76.       TabStyle        =   1
  77.       ShowFocusRect   =   0   'False
  78.       BeginProperty ActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  79.          Name            =   "Verdana"
  80.          Size            =   8.25
  81.          Charset         =   0
  82.          Weight          =   700
  83.          Underline       =   0   'False
  84.          Italic          =   0   'False
  85.          Strikethrough   =   0   'False
  86.       EndProperty
  87.       BeginProperty InActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  88.          Name            =   "Verdana"
  89.          Size            =   8.25
  90.          Charset         =   0
  91.          Weight          =   400
  92.          Underline       =   0   'False
  93.          Italic          =   0   'False
  94.          Strikethrough   =   0   'False
  95.       EndProperty
  96.       DisabledTabBackColor=   -2147483633
  97.       DisabledTabForeColor=   -2147483627
  98.       PictureAlign    =   2
  99.       PictureSize     =   1
  100.    End
  101.    Begin prjXTab.XTab XTab2 
  102.       Height          =   1905
  103.       Left            =   210
  104.       TabIndex        =   1
  105.       Top             =   3510
  106.       Width           =   6525
  107.       _ExtentX        =   11509
  108.       _ExtentY        =   3360
  109.       TabCaption(0)   =   "Tab 0"
  110.       TabPicture(0)   =   "frmPreviewEvenMore.frx":095A
  111.       TabCaption(1)   =   "Disabled"
  112.       TabEnabled(1)   =   0   'False
  113.       TabPicture(1)   =   "frmPreviewEvenMore.frx":0C74
  114.       TabCaption(2)   =   "Tab 2"
  115.       TabPicture(2)   =   "frmPreviewEvenMore.frx":0F8E
  116.       ActiveTabHeight =   40
  117.       InActiveTabHeight=   38
  118.       TabStyle        =   1
  119.       TabTheme        =   3
  120.       ShowFocusRect   =   0   'False
  121.       ActiveTabBackStartColor=   16316664
  122.       InActiveTabBackStartColor=   15066597
  123.       ActiveTabForeColor=   10972496
  124.       InActiveTabForeColor=   9474192
  125.       BeginProperty ActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  126.          Name            =   "Verdana"
  127.          Size            =   8.25
  128.          Charset         =   0
  129.          Weight          =   700
  130.          Underline       =   0   'False
  131.          Italic          =   0   'False
  132.          Strikethrough   =   0   'False
  133.       EndProperty
  134.       BeginProperty InActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  135.          Name            =   "Verdana"
  136.          Size            =   8.25
  137.          Charset         =   0
  138.          Weight          =   400
  139.          Underline       =   0   'False
  140.          Italic          =   0   'False
  141.          Strikethrough   =   0   'False
  142.       EndProperty
  143.       OuterBorderColor=   9474192
  144.       DisabledTabBackColor=   -2147483633
  145.       DisabledTabForeColor=   -2147483627
  146.       XRadius         =   20
  147.       YRadius         =   20
  148.       PictureSize     =   1
  149.    End
  150.    Begin VB.Label Label1 
  151.       Alignment       =   2  'Center
  152.       AutoSize        =   -1  'True
  153.       BackStyle       =   0  'Transparent
  154.       Caption         =   "::Round Tabs(Prperty Page,Large Icon)::"
  155.       Height          =   195
  156.       Left            =   1815
  157.       TabIndex        =   8
  158.       Top             =   3240
  159.       Width           =   3555
  160.    End
  161.    Begin VB.Label Label2 
  162.       Alignment       =   2  'Center
  163.       AutoSize        =   -1  'True
  164.       BackStyle       =   0  'Transparent
  165.       Caption         =   "::Standard Tabs(Tabbed,Large Icon)::"
  166.       Height          =   195
  167.       Left            =   1935
  168.       TabIndex        =   7
  169.       Top             =   180
  170.       Width           =   3315
  171.    End
  172.    Begin VB.Label Label11 
  173.       Alignment       =   2  'Center
  174.       AutoSize        =   -1  'True
  175.       BackStyle       =   0  'Transparent
  176.       Caption         =   "::OwnerDrawn::"
  177.       Height          =   195
  178.       Left            =   2940
  179.       TabIndex        =   6
  180.       Top             =   6300
  181.       Width           =   1410
  182.    End
  183. End
  184. Attribute VB_Name = "frmPreviewEvenMore"
  185. Attribute VB_GlobalNameSpace = False
  186. Attribute VB_Creatable = False
  187. Attribute VB_PredeclaredId = True
  188. Attribute VB_Exposed = False
  189. Option Explicit
  190. Private Sub chkShowFocusRect_Click()
  191.   Dim bFlag As Boolean
  192.   Dim oCtl As Control
  193.   
  194.   
  195.   If chkShowFocusRect.Value = vbChecked Then
  196.     bFlag = True
  197.   Else
  198.     bFlag = False
  199.   End If
  200.   
  201.   'Set focus rect Property for all the XTab controls on the form
  202.   For Each oCtl In Me.Controls
  203.     If TypeOf oCtl Is XTab Then
  204.       oCtl.ShowFocusRect = bFlag
  205.     End If
  206.   Next
  207. End Sub
  208. Private Sub cmdBack_Click()
  209.   Load frmPreviewMore
  210.   frmPreviewMore.Refresh
  211.   
  212.   frmPreviewMore.Left = Me.Left
  213.   frmPreviewMore.Top = Me.Top
  214.   
  215.   frmPreviewMore.Show
  216.   frmPreviewMore.Refresh
  217.   
  218.   Me.Hide
  219.   Unload Me
  220. End Sub
  221. Private Sub cmdPreviewOwnerDrawn_Click()
  222.   Load frmOwnerDrawnPreview
  223.   frmOwnerDrawnPreview.Show vbModal, Me
  224. End Sub
  225. Private Sub cmdPreviewProps_Click()
  226.   Load frmTestControlProperties
  227.   
  228.   Me.Hide
  229.   frmTestControlProperties.Show vbModal, Me
  230.   Me.Show
  231. End Sub