I need to be able to access the click event of SSTab1 in the AR1300 form. The reason I
want to do so is to show a button in one of the tabs and hide it in the other tabs.
My idea is to to this via the SStab's click event.
Perhaps this code would give an Idea of what I am trying to achieve.
Currently I get a "Type Mismatch" error for the code below at the .GetControl line.
Public WithEvents CustDS As AccpacAR1300.ACCPACDSControl
'Public WithEvents CustCntrl As AccpacAR1300.ACCPACAR1300UICtrl
Public WithEvents CustCntrl As SSTab
Private Sub ACCPACAR1300UICtrl1_OnUIAppOpened()
Set CustCntrl = Me.ACCPACAR1300UICtrl1.UIAppControls.Item("SStab1").GetControl
End Sub
Private Sub CustCntrl_Click(PreviousTab as Integer)
If CustCntrl.Tab <> 1 Then
Command2.Hide = True
End if
End Sub
want to do so is to show a button in one of the tabs and hide it in the other tabs.
My idea is to to this via the SStab's click event.
Perhaps this code would give an Idea of what I am trying to achieve.
Currently I get a "Type Mismatch" error for the code below at the .GetControl line.
Public WithEvents CustDS As AccpacAR1300.ACCPACDSControl
'Public WithEvents CustCntrl As AccpacAR1300.ACCPACAR1300UICtrl
Public WithEvents CustCntrl As SSTab
Private Sub ACCPACAR1300UICtrl1_OnUIAppOpened()
Set CustCntrl = Me.ACCPACAR1300UICtrl1.UIAppControls.Item("SStab1").GetControl
End Sub
Private Sub CustCntrl_Click(PreviousTab as Integer)
If CustCntrl.Tab <> 1 Then
Command2.Hide = True
End if
End Sub