event UserEditorClose (Object as Object, Node as Node)
Fired the user editor is about to be opened.

 TypeDescription 
   Object as Object An object created by UserEditor property  
   Node as Node A Node object where the ActiveX editor is closed.  
Use the UserEditorClose event to notify your application when the user editor is hidden. The control fires UserEditorOleEvent event each time when a an user editor object fires an event. Use the Add method and UserEditorType type to add an ActiveX editor to the control. Use the UserEditor method to create an ActiveX editor. Use the UserEditorObject property to get the ActiveX editor created by the UserEditor method. The UserEditorOpen event is fired when the control shows an ActiveX editor. 

Syntax for UserEditorClose event, /NET version, on:

private void UserEditorClose(object sender,object Obj,exontrol.EXMLGRIDLib.Node Node)
{
}

Private Sub UserEditorClose(ByVal sender As System.Object,ByVal Obj As Object,ByVal Node As exontrol.EXMLGRIDLib.Node) Handles UserEditorClose
End Sub

Syntax for UserEditorClose event, /COM version, on:

private void UserEditorClose(object sender, AxEXMLGRIDLib._IXMLGridEvents_UserEditorCloseEvent e)
{
}

void OnUserEditorClose(LPDISPATCH Object,LPDISPATCH Node)
{
}

void __fastcall UserEditorClose(TObject *Sender,IDispatch *Object,Exmlgridlib_tlb::INode *Node)
{
}

procedure UserEditorClose(ASender: TObject; Object : IDispatch;Node : INode);
begin
end;

procedure UserEditorClose(sender: System.Object; e: AxEXMLGRIDLib._IXMLGridEvents_UserEditorCloseEvent);
begin
end;

begin event UserEditorClose(oleobject Object,oleobject Node)
end event UserEditorClose

Private Sub UserEditorClose(ByVal sender As System.Object, ByVal e As AxEXMLGRIDLib._IXMLGridEvents_UserEditorCloseEvent) Handles UserEditorClose
End Sub

Private Sub UserEditorClose(ByVal Object As Object,ByVal Node As EXMLGRIDLibCtl.INode)
End Sub

Private Sub UserEditorClose(ByVal Object As Object,ByVal Node As Object)
End Sub

LPARAMETERS Object,Node

PROCEDURE OnUserEditorClose(oXMLGrid,Object,Node)
RETURN

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

<SCRIPT EVENT="UserEditorClose(Object,Node)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function UserEditorClose(Object,Node)
End Function
</SCRIPT>

Procedure OnComUserEditorClose Variant llObject Variant llNode
	Forward Send OnComUserEditorClose llObject llNode
End_Procedure

METHOD OCX_UserEditorClose(Object,Node) CLASS MainDialog
RETURN NIL

void onEvent_UserEditorClose(COM _Object,COM _Node)
{
}

function UserEditorClose as v (Object as P,Node as OLE::Exontrol.XMLGrid.1::INode)
end function

function nativeObject_UserEditorClose(Object,Node)
return

The following VB sample changes the node's Value property when the user editor is closed ( in this case we used the Exontrol's ExComboBox control ):

Private Sub XMLGrid1_UserEditorClose(ByVal Object As Object, ByVal Node As EXMLGRIDLibCtl.INode)
On Error Resume Next
    With Object.Items
        Node.Value = .Select(0)
    End With
End Sub

The following C++ sample changes the node's Value property when the user editor is closed ( in this case we have used the Exontrol's ExComboBox component ):

#import <excombobox.dll>
void OnUserEditorCloseXmlgrid1(LPDISPATCH Object, LPDISPATCH Node) 
{
	COleVariant vtMissing; V_VT( &vtMissing ) = VT_ERROR;
	CNode node( Node ); node.m_bAutoRelease = FALSE;
	EXCOMBOBOXLib::IComboBoxPtr spComboBox = Object;
	if ( spComboBox != NULL )
	{
		COleVariant vtValue;
		if ( SUCCEEDED( spComboBox->get_Select( COleVariant( (long)0 ), &vtValue  ) ) )
			node.SetValue( vtValue );
	}
}

The sample assumes that the Object parameter holds an ExComboBox control. We need to call the #import <excombobox.dll> in order to include definitions for objects and types in the ExComboBox control. The #import <excombobox.dll> creates EXCOMBOBOXLib namespace that includes all definitions for objects and types that the ExComboBox control exports.  

The following VB.NET sample changes the node's Value property when the user editor is closed ( in this case we have used the Exontrol's ExComboBox component ):

Private Sub AxXMLGrid1_UserEditorClose(ByVal sender As Object, ByVal e As AxEXMLGRIDLib._IXMLGridEvents_UserEditorCloseEvent) Handles AxXMLGrid1.UserEditorClose
    On Error Resume Next
    With e.object.Items
        e.node.Value = .Select(0)
    End With
End Sub

The following C# sample changes the node's Value property when the user editor is closed ( in this case we have used the Exontrol's ExComboBox component ):

private void axXMLGrid1_UserEditorClose(object sender, AxEXMLGRIDLib._IXMLGridEvents_UserEditorCloseEvent e)
{
	EXCOMBOBOXLib.ComboBox comboBox = e.@object as EXCOMBOBOXLib.ComboBox;
	if (comboBox != null)
		e.node.Value = comboBox.get_Select(0);

}

In C# your project needs a new reference to the Exontrol's ExComboBox control library. Use the Project\Add Reference\COM item to add new reference to a COM object. Once that you added a reference to the Exontrol's ExComboBox the EXCOMBOBOXLib namespace is created. The EXCOMBOBOXLib namespace contains definitions for all objects that ExComboBox control exports.

The following VFP sample changes the node's Value property when the user editor is closed ( in this case we have used the Exontrol's ExComboBox component ):

*** ActiveX Control Event ***
LPARAMETERS object, node

node.value = object.Select(0)

 


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.