summaryrefslogtreecommitdiff
path: root/wizards/source/access2base/OptionGroup.xba
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2019-07-13 16:19:17 +0200
committerJean-Pierre Ledure <jp@ledure.be>2019-07-13 16:22:32 +0200
commit15fec4ee1c07b7c2b234384654ca3ee730acc2c8 (patch)
treed053260ace1ac15e11f53519c0bb44ea6e5baa35 /wizards/source/access2base/OptionGroup.xba
parent35463d886e15d13a81bce36610140e40ae742416 (diff)
Access2Base - Set Parent property in all classes
To get faster access to parents from controls Top classes (form, dialog and commandbar) should return Parent = Nothing
Diffstat (limited to 'wizards/source/access2base/OptionGroup.xba')
-rw-r--r--wizards/source/access2base/OptionGroup.xba3
1 files changed, 3 insertions, 0 deletions
diff --git a/wizards/source/access2base/OptionGroup.xba b/wizards/source/access2base/OptionGroup.xba
index 02c9c170a808..f4b749ef6128 100644
--- a/wizards/source/access2base/OptionGroup.xba
+++ b/wizards/source/access2base/OptionGroup.xba
@@ -17,6 +17,7 @@ REM ----------------------------------------------------------------------------
Private _Type As String &apos; Must be FORM
Private _This As Object &apos; Workaround for absence of This builtin function
+Private _Parent As Object
Private _Name As String
Private _ParentType As String
Private _ParentComponent As Object
@@ -33,6 +34,7 @@ REM ----------------------------------------------------------------------------
Private Sub Class_Initialize()
_Type = OBJOPTIONGROUP
Set _This = Nothing
+ Set _Parent = Nothing
_Name = &quot;&quot;
_ParentType = &quot;&quot;
_ParentComponent = Nothing
@@ -137,6 +139,7 @@ Dim oCounter As Object
&apos; Determine exact name
Set ocControl = New Control
Set ocControl._This = ocControl
+ Set ocControl._Parent = _This
ocControl._ParentType = CTLPARENTISGROUP
ocControl._Shortcut = &quot;&quot;