vbAccelerator - Contents of code file: fTest.frm
VERSION 5.00
Object = "{2BBD46E6-FFDB-11D1-8E21-ACB204C10000}#3.0#0"; "cHotKey.ocx"
Begin VB.Form frmHotKey
Caption = "Test Hot-key Chooser Control"
ClientHeight = 2370
ClientLeft = 4680
ClientTop = 2655
ClientWidth = 4125
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "fTest.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2370
ScaleWidth = 4125
Begin VB.CommandButton cmdTest
Caption = "&Set"
Height = 375
Left = 3060
TabIndex = 0
Top = 1500
Width = 975
End
Begin cHotKey.HotKey HotKey1
Height = 345
Left = 120
TabIndex = 1
Top = 1500
Width = 2820
_ExtentX = 4974
_ExtentY = 609
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
HotKey = 65
HotKeyModifier = 2
End
Begin VB.Image imgIcon
Height = 435
Left = 120
Top = 60
Width = 555
End
Begin VB.Label lblInfo
Caption = $"fTest.frx":030A
Height = 1215
Left = 780
TabIndex = 2
Top = 120
Width = 3255
End
End
Attribute VB_Name = "frmHotKey"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdTest_Click()
On Error Resume Next
HotKey1.SetApplicationHotKey Me.hWnd
If (Err.Number <> 0) Then
MsgBox Err.Description, vbExclamation
End If
End Sub
Private Sub Form_Load()
imgIcon.Picture = Me.Icon
HotKey1.InvalidHotKeyOperation(HKCOMB_NONE Or HKCOMB_S, HOTKEYF_ALT) = True
Me.Show
HotKey1.SetFocus
End Sub
|
|