![]() | Type | Description | ||
| OldGroup as Group | A Group object that's unselected. | |||
| NewGroup as Group | A Group object that's selected. |
Use the SelectGroup event to notify your application that a new group was selected. Use the SelectGroup property to get the index of the selected group. Use the SelectItem event to notify your application that a new item was selected. Use the SelectItem property to retrieve the index of selected in the group. Use the Caption property to get the caption of the item. Use the Caption property to get the caption of the group.
The following VB sample displays the caption of the group being selected:
Private Sub ListBar1_SelectGroup(ByVal Group As EXLISTBARLibCtl.IGroup)
Debug.Print Group.Caption
End Sub
The following C++ sample displays the caption of the group being selected:
void OnSelectGroupListbar1(LPDISPATCH Group)
{
CGroup group( Group ); group.m_bAutoRelease = FALSE;
CString strOutput;
strOutput.Format("%s", (LPCTSTR)group.GetCaption() );
OutputDebugString( strOutput );
}
The following VB.NET sample displays the caption of the group being selected:
Private Sub AxListBar1_SelectGroup(ByVal sender As Object, ByVal e As AxEXLISTBARLib._IListBarEvents_SelectGroupEvent) Handles AxListBar1.SelectGroup
With e.group
Debug.WriteLine(.Caption)
End With
End Sub
The following C# sample displays the caption of the group being selected:
private void axListBar1_SelectGroup(object sender, AxEXLISTBARLib._IListBarEvents_SelectGroupEvent e)
{
System.Diagnostics.Debug.WriteLine(e.group.Caption);
}
The following VFP sample displays the caption of the group being selected:
*** ActiveX Control Event *** LPARAMETERS group with group wait window nowait .Caption endwith