vbAccelerator - Contents of code file: fKeyTest2.frmVERSION 5.00
Begin VB.Form frmKeyTest
Caption = "vbAccelerator- Tabs the Hard Way"
ClientHeight = 3465
ClientLeft = 3360
ClientTop = 2235
ClientWidth = 4845
Icon = "fKeyTest2.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3465
ScaleWidth = 4845
Begin VB.CheckBox chkControlGetsTabs
Appearance = 0 'Flat
Caption = "&Intercept Tabs"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 60
TabIndex = 5
Top = 3120
Value = 1 'Checked
Width = 3135
End
Begin Project1.uKeyTest2 uKeyTest21
Height = 2295
Left = 60
TabIndex = 4
Top = 780
Width = 3495
_ExtentX = 6165
_ExtentY = 4048
End
Begin VB.CommandButton cmdTest
Caption = "&Test"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 3660
TabIndex = 2
Top = 780
Width = 1095
End
Begin VB.CommandButton cmdExit
Caption = "&Close"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 3660
TabIndex = 1
Top = 1260
Width = 1095
End
Begin VB.CheckBox chkTabStops
Appearance = 0 'Flat
Caption = "&Tab Stops"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 3660
TabIndex = 0
Top = 1800
Value = 1 'Checked
Width = 1095
End
Begin VB.Label lblInfo
Caption = "VB control enhanced with subclassing and
IOleInPlaceActiveObject interface- full control over interception of the
Tab key."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 60
TabIndex = 3
Top = 60
Width = 4215
End
End
Attribute VB_Name = "frmKeyTest"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub chkTabStops_Click()
Dim ctl As Control
For Each ctl In Controls
If TypeOf ctl Is uKeyTest2 Then
Else
On Error Resume Next
ctl.TabStop = (chkTabStops.Value = Checked)
End If
Next ctl
End Sub
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub chkControlGetsTabs_Click()
uKeyTest21.InterceptTabs = (chkControlGetsTabs.Value = Checked)
End Sub
|