event Context ()
Indicates the the user right-clicks the host on an object.

TypeDescription
The Context event notifies your application once the user right clicks the control. The HostContext property returns information about the object from the current cursor position. The Context event occurs right after HostEvent(exHostRClick) event.

The following VB sample displays information about the current context, when user right clicks the control:

Private Sub G2Host1_Context()
	With G2Host1
		Debug.Print( .HostContext.ToString )
	End With
End Sub
Syntax for Context event, /NET version, on:

private void Context(object sender)
{
}

Private Sub Context(ByVal sender As System.Object) Handles Context
End Sub

Syntax for Context event, /COM version, on:

private void Context(object sender, EventArgs e)
{
}

void OnContext()
{
}

void __fastcall Context(TObject *Sender)
{
}

procedure Context(ASender: TObject; );
begin
end;

procedure Context(sender: System.Object; e: System.EventArgs);
begin
end;

begin event Context()

end event Context

Private Sub Context(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Context
End Sub

Private Sub Context()
End Sub

Private Sub Context()
End Sub

LPARAMETERS nop

PROCEDURE OnContext(oG2Host)

RETURN

Syntax for Context event, /COM version (others), on:

<SCRIPT EVENT="Context()" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function Context()
End Function
</SCRIPT>

Procedure OnComContext 
	Forward Send OnComContext 
End_Procedure

METHOD OCX_Context() CLASS MainDialog
RETURN NIL

void onEvent_Context()
{
}

function Context as v ()
end function

function nativeObject_Context()
return