Event KeyDown(KeyCode As Integer, Shift As Integer)
Event KeyPress(KeyAscii As Integer)
Event KeyUp(KeyCode As Integer, Shift As Integer)
Event MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
Event MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Event MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim Temp As String, Code As String, DataString As String
Private Sub Command1_Click()
RaiseEvent Click
End Sub
Public Sub AboutBox()
Attribute AboutBox.VB_UserMemId = -552
MsgBox "This Control Is FreeWare. If you got any questions or suggestions E-mail us to VBActiveX@hotmail.com" + Chr(13) + "Check For Updates and new controls at Go.To/VBHelp", , "About this control"
End Sub
Private Sub Command1_KeyDown(KeyCode As Integer, Shift As Integer)
RaiseEvent KeyDown(KeyCode, Shift)
End Sub
Private Sub Command1_KeyPress(KeyAscii As Integer)
RaiseEvent KeyPress(KeyAscii)
End Sub
Private Sub Command1_KeyUp(KeyCode As Integer, Shift As Integer)
RaiseEvent KeyUp(KeyCode, Shift)
End Sub
Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
RaiseEvent MouseDown(Button, Shift, x, y)
End Sub
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
RaiseEvent MouseMove(Button, Shift, x, y)
End Sub
Private Sub Command1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
RaiseEvent MouseUp(Button, Shift, x, y)
End Sub
Private Sub UserControl_Initialize()
CaptionColorVar = vbBlack
End Sub
Private Sub UserControl_Resize()
Command1.Width = UserControl.Width
Command1.Height = UserControl.Height
End Sub
Public Property Get BackColor() As OLE_COLOR
BackColor = Command1.BackColor
End Property
Public Property Let BackColor(ByVal New_BackColor As OLE_COLOR)
Command1.BackColor() = New_BackColor
PropertyChanged "BackColor"
End Property
Public Property Get CaptionColor() As OLE_COLOR
CaptionColor = CaptionColorVar
End Property
Public Property Let CaptionColor(ByVal New_CaptionColor As OLE_COLOR)
CaptionColorVar = New_CaptionColor
RegisterButton Command1, CaptionColorVar
PropertyChanged "CaptionColor"
End Property
Public Property Get Enabled() As Boolean
Enabled = Command1.Enabled
End Property
Public Property Let Enabled(ByVal New_Enabled As Boolean)
Command1.Enabled() = New_Enabled
PropertyChanged "Enabled"
End Property
Public Property Get Font() As Font
Set Font = Command1.Font
End Property
Public Property Set Picture(ByVal New_Picture As Picture)
Set Command1.Picture = New_Picture
PropertyChanged "Picture"
End Property
Public Property Set DisabledPicture(ByVal New_DisabledPicture As Picture)
Set Command1.DisabledPicture = New_DisabledPicture
PropertyChanged "DisabledPicture"
End Property
Public Property Get Picture() As Picture
Set Picture = Command1.Picture
End Property
Public Property Get DisabledPicture() As Picture
Set DisabledPicture = Command1.DisabledPicture
End Property
Public Property Set Font(ByVal New_Font As Font)
Set Command1.Font = New_Font
PropertyChanged "Font"
End Property
Public Property Get DownPicture() As Picture
Set DownPicture = Command1.DownPicture
End Property
Public Property Set DownPicture(ByVal New_DownPicture As Picture)
Set Command1.DownPicture = New_DownPicture
PropertyChanged "DownPicture"
End Property
Public Property Get MousePointer() As MousePointerConstants
MousePointer = Command1.MousePointer
End Property
Public Property Let MousePointer(ByVal New_MousePointer As MousePointerConstants)
Command1.MousePointer() = New_MousePointer
PropertyChanged "MousePointer"
End Property
Public Property Get MouseIcon() As Picture
Set MouseIcon = Command1.MouseIcon
End Property
Public Property Set MouseIcon(ByVal New_MouseIcon As Picture)
Set Command1.MouseIcon() = New_MouseIcon
PropertyChanged "MouseIcon"
End Property
Public Property Get Caption() As String
Caption = Command1.Caption
End Property
Public Property Let Caption(ByVal New_Caption As String)
Command1.Caption() = New_Caption
PropertyChanged "Caption"
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)