Sub Globals
End Sub
Sub App_Start
Form1.Show
'Context menu
Context1.New1
Context1.AddItem("Yes")
Context1.AddItem("No")
Context1.AddItem("-")
Context1.AddItem("Maybe")
'Objects required for the door library
Obj1.New1(False)
Obj1.Value = Context1.Value
Obj2.New1(False)
OA1.New1(2)
Obj3.New1(False)
End Sub
Sub Form1_MouseDown(x, y)
ShowContextMenu("Form1", x, y)
End Sub
Sub ShowContextMenu(ControlName, X, Y)
OA1.SetValue(0, X, "System.Int32")
OA1.SetValue(1, Y, "System.Int32")
Obj2.CreateNew2("System.Drawing.Point" & Obj2.System_Drawing, OA1.Value)
Obj3.FromControl(ControlName)
OA1.SetObject(0, Obj3.Value)
OA1.SetObject(1, Obj2.Value)
Obj1.RunMethod4("Show", OA1.Value)
End Sub
Sub Context1_Click
Form1.Text = Context1.Selectedtext
Select Context1.SelectedText
Case "Yes"
'Do something
Case "No"
'Do something
Case "Maybe"
'Do something
End Select
End Sub