K
Kalle
Hi again,
managed it to show custom contextmenu properly.
But the function which is associated with the contextmenu is never called.
The function is:
Function GetKontextChoice(cab As Integer)
MsgBox CStr(cab)
End Function
And in constructing the contextmenu every control added to that menu has:
WHILE ADDING
Set myBttn = myBar.Controls.Add
myBttn.Caption = Taxis.Cells(i, 1).Value
myBttn.OnAction = frmNeuerAuftrag.GetKontextChoice(myBttn.Index)
NEXT
any ideas?
managed it to show custom contextmenu properly.
But the function which is associated with the contextmenu is never called.
The function is:
Function GetKontextChoice(cab As Integer)
MsgBox CStr(cab)
End Function
And in constructing the contextmenu every control added to that menu has:
WHILE ADDING
Set myBttn = myBar.Controls.Add
myBttn.Caption = Taxis.Cells(i, 1).Value
myBttn.OnAction = frmNeuerAuftrag.GetKontextChoice(myBttn.Index)
NEXT
any ideas?