Sub Process_Globals
Public mLastDropDown As Object = Null
End Sub
Public Sub ShowDropDown(Showing As Object)
Dim CurrentDropDown As cDropDown = mLastDropDown
Dim ShowingDropDown As cDropDown = Showing
If CurrentDropDown <> Null AND CurrentDropDown.IsInitialized AND CurrentDropDown <> ShowingDropDown Then CurrentDropDown.CloseDropDown
mLastDropDown = Showing
End Sub
Public Sub CloseDropDown(Closing As Object)
Dim CurrentDropDown As cDropDown = mLastDropDown
Dim ClosingDropDown As cDropDown = Closing
If CurrentDropDown <> Null AND CurrentDropDown.IsInitialized AND CurrentDropDown = ClosingDropDown Then CurrentDropDown = Null
End Sub