forked from syntax53/Nightmare-Redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NMRTask_clsMenuItem.cls
92 lines (77 loc) · 2.47 KB
/
NMRTask_clsMenuItem.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "clsMenuItem"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Attribute VB_Ext_KEY = "SavedWithClassBuilder" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
'local variable(s) to hold property value(s)
Private mvarCaption As String 'local copy
Private mvarStyle As Long 'local copy
Private mvarIcon As Long 'local copy
Private mvarKey As String
Private mvarTag As Variant
'local variable(s) to hold property value(s)
Private mvarSubItems As clsMenuItems 'local copy
Public Property Set SubItems(ByVal vData As Object)
'used when assigning an Object to the property, on the left side of a Set statement.
'Syntax: Set x.SubItems = Form1
Set mvarSubItems = vData
End Property
Public Property Get SubItems() As clsMenuItems
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.SubItems
Set SubItems = mvarSubItems
End Property
Public Property Let Style(ByVal vData As Long)
mvarStyle = vData
End Property
Public Property Get Style() As Long
Style = mvarStyle
End Property
Public Property Let Icon(ByVal vData As Long)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Icon = 5
mvarIcon = vData
End Property
Public Property Get Icon() As Long
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Icon
Icon = mvarIcon
End Property
Public Property Let Caption(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Caption = 5
mvarCaption = vData
End Property
Public Property Get Caption() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Caption
Caption = mvarCaption
End Property
Public Property Let Key(ByVal vData As String)
mvarKey = vData
End Property
Public Property Get Key() As String
Key = mvarKey
End Property
Public Property Let Tag(ByVal vData As Variant)
mvarTag = vData
End Property
Public Property Get Tag() As Variant
Tag = mvarTag
End Property
Private Sub Class_Initialize()
Set mvarSubItems = New clsMenuItems
End Sub
Private Sub Class_Terminate()
Set mvarSubItems = Nothing
End Sub