If your pop-up is a Dialog, you could define the following handler in the source of your Form:
Jabaco Source
1
2
3
4
5
6
7
8
9
10
11
12
PublicSub Form_MouseDown(Button AsInteger, Shift AsInteger, X AsSingle, Y AsSingle)
Dim dlg As Dialog1
If Button = 2Then
' start pop-up on right mouse click
dlg = New Dialog1
dlg.Left = Me.Left + X
dlg.Top = Me.Top + Y
dlg.Show vbModal
End IfEndSub
You might want to digg this forum using the search facility.
There were some postings on menu handling.