vbAccelerator - Contents of code file: frmTestIconPicker.frmVERSION 5.00
Object = "{1265B40C-AABD-4635-B137-9EA2198E2F35}#1.1#0"; "vbalIconPicker.ocx"
Begin VB.Form frmTestIconPicker
Caption = "vbAccelerator Icon Picker Control"
ClientHeight = 5415
ClientLeft = 3690
ClientTop = 3600
ClientWidth = 7665
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmTestIconPicker.frx":0000
LinkTopic = "Form1"
ScaleHeight = 5415
ScaleWidth = 7665
Begin IconPickerLib.ctlIconPicker ctlIconPicker1
Align = 3 'Align Left
Height = 5415
Left = 0
TabIndex = 4
Top = 0
Width = 4695
_ExtentX = 8281
_ExtentY = 9551
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
End
Begin VB.CheckBox chkAllowBrowse
Caption = "A&llow Browsing"
Height = 255
Left = 4800
TabIndex = 0
Top = 2460
Value = 1 'Checked
Width = 2775
End
Begin VB.Frame fraSelection
Caption = "Selection"
Height = 2295
Left = 4800
TabIndex = 1
Top = 60
Width = 2775
Begin VB.TextBox txtRegString
BackColor = &H8000000F&
BorderStyle = 0 'None
Height = 795
Left = 180
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 3
Top = 1380
Width = 2535
End
Begin VB.TextBox txtId
BackColor = &H8000000F&
BorderStyle = 0 'None
Height = 315
Left = 180
Locked = -1 'True
TabIndex = 2
Top = 1080
Width = 2535
End
Begin VB.Image imgIcon
Height = 735
Left = 180
Top = 240
Width = 915
End
End
End
Attribute VB_Name = "frmTestIconPicker"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub chkAllowBrowse_Click()
ctlIconPicker1.AllowChangeFile = (chkAllowBrowse.Value = vbChecked)
End Sub
Private Sub ctlIconPicker1_SelectionChange()
imgIcon.Picture = ctlIconPicker1.SelectedIcon
txtId.Text = ctlIconPicker1.SelectedIconResourceId
If Len(txtId.Text) > 0 Then
txtRegString.Text = ctlIconPicker1.filename & "," &
ctlIconPicker1.SelectedIconResourceId
Else
txtRegString.Text = ctlIconPicker1.filename
End If
End Sub
|
|