event ExpandGroup (Group as Group)
Occurs when a group is expanded or collapsed.

TypeDescription
Group as Group A Group object being expanded or collapsed.

Use the ExpandGroup event to notify your application that a group is expanded or collapsed. The BeforeExpandGroup event is fired just before expanding or collapsing a group. Use the DelayScroll property to specifies the delay used for animation during expanding or collapsing. Use the Expanded property to expand or collapse programmatically a group. Use the ExpandOnClick property to specify whether the user can expand or collapse the groups by clicking the caption of the group.

Syntax for ExpandGroup event, /NET version, on:

private void ExpandGroup(object sender,exontrol.EXPLORERBARLib.Group Group)
{
}

Private Sub ExpandGroup(ByVal sender As System.Object,ByVal Group As exontrol.EXPLORERBARLib.Group) Handles ExpandGroup
End Sub

Syntax for ExpandGroup event, /COM version, on:

private void ExpandGroup(object sender, AxEXPLORERBARLib._IExplorerBarEvents_ExpandGroupEvent e)
{
}

void OnExpandGroup(LPDISPATCH Group)
{
}

void __fastcall ExpandGroup(TObject *Sender,Explorerbarlib_tlb::IGroup *Group)
{
}

procedure ExpandGroup(ASender: TObject; Group : IGroup);
begin
end;

procedure ExpandGroup(sender: System.Object; e: AxEXPLORERBARLib._IExplorerBarEvents_ExpandGroupEvent);
begin
end;

begin event ExpandGroup(oleobject Group)
end event ExpandGroup

Private Sub ExpandGroup(ByVal sender As System.Object, ByVal e As AxEXPLORERBARLib._IExplorerBarEvents_ExpandGroupEvent) Handles ExpandGroup
End Sub

Private Sub ExpandGroup(ByVal Group As EXPLORERBARLibCtl.IGroup)
End Sub

Private Sub ExpandGroup(ByVal Group As Object)
End Sub

LPARAMETERS Group

PROCEDURE OnExpandGroup(oExplorerBar,Group)
RETURN

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

<SCRIPT EVENT="ExpandGroup(Group)" LANGUAGE="JScript">
</SCRIPT>

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

Procedure OnComExpandGroup Variant llGroup
	Forward Send OnComExpandGroup llGroup
End_Procedure

METHOD OCX_ExpandGroup(Group) CLASS MainDialog
RETURN NIL

void onEvent_ExpandGroup(COM _Group)
{
}

function ExpandGroup as v (Group as OLE::Exontrol.ExplorerBar.1::IGroup)
end function

function nativeObject_ExpandGroup(Group)
return

The following VB sample displays the caption of the group being expanded or collapsed:

Private Sub ExplorerBar1_ExpandGroup(ByVal Group As EXPLORERBARLibCtl.IGroup)
    With Group
        Debug.Print .Caption & " " & .Expanded
    End With
End Sub

The following C++ sample displays the caption of the group being expanded or collapsed:

void OnExpandGroupExplorerbar1(LPDISPATCH Group) 
{
	CGroup group( Group ); group.m_bAutoRelease = FALSE;
	CString strOutput;
	strOutput.Format("%s, %i", (LPCTSTR)group.GetCaption(), group.GetExpanded() );
	OutputDebugString( strOutput );		
}

The following VB.NET sample displays the caption of the group being expanded or collapsed:

private void axExplorerBar1_DblClick(object sender, AxEXPLORERBARLib._IExplorerBarEvents_DblClickEvent e)
{
	EXPLORERBARLib.Item item = axExplorerBar1.get_ItemFromPoint(e.x, e.y);
	if (item != null)
	{
		System.Diagnostics.Debug.WriteLine(item.Caption);
	}
}

The following C# sample displays the caption of the group being expanded or collapsed:

private void axExplorerBar1_ExpandGroup(object sender, AxEXPLORERBARLib._IExplorerBarEvents_ExpandGroupEvent e)
{
	string strOutput = e.group.Caption;
	strOutput += " " + e.group.Expanded.ToString();
	System.Diagnostics.Debug.WriteLine(strOutput);
}

The following VFP sample displays the caption of the group being expanded or collapsed:

*** ActiveX Control Event ***
LPARAMETERS group

with group
	wait window nowait .Caption
endwith