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.
Syntax for SelectGroup event, /NET version, on:
private void SelectGroup(object sender,exontrol.EXLISTBARLib.Group OldGroup,exontrol.EXLISTBARLib.Group NewGroup) { } Private Sub SelectGroup(ByVal sender As System.Object,ByVal OldGroup As exontrol.EXLISTBARLib.Group,ByVal NewGroup As exontrol.EXLISTBARLib.Group) Handles SelectGroup End Sub |
private void SelectGroup(object sender, AxEXLISTBARLib._IListBarEvents_SelectGroupEvent e) { } void OnSelectGroup(LPDISPATCH OldGroup,LPDISPATCH NewGroup) { } void __fastcall SelectGroup(TObject *Sender,Exlistbarlib_tlb::IGroup *OldGroup,Exlistbarlib_tlb::IGroup *NewGroup) { } procedure SelectGroup(ASender: TObject; OldGroup : IGroup;NewGroup : IGroup); begin end; procedure SelectGroup(sender: System.Object; e: AxEXLISTBARLib._IListBarEvents_SelectGroupEvent); begin end; begin event SelectGroup(oleobject OldGroup,oleobject NewGroup) end event SelectGroup Private Sub SelectGroup(ByVal sender As System.Object, ByVal e As AxEXLISTBARLib._IListBarEvents_SelectGroupEvent) Handles SelectGroup End Sub Private Sub SelectGroup(ByVal OldGroup As EXLISTBARLibCtl.IGroup,ByVal NewGroup As EXLISTBARLibCtl.IGroup) End Sub Private Sub SelectGroup(ByVal OldGroup As Object,ByVal NewGroup As Object) End Sub LPARAMETERS OldGroup,NewGroup PROCEDURE OnSelectGroup(oListBar,OldGroup,NewGroup) RETURN |
<SCRIPT EVENT="SelectGroup(OldGroup,NewGroup)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function SelectGroup(OldGroup,NewGroup) End Function </SCRIPT> Procedure OnComSelectGroup Variant llOldGroup Variant llNewGroup Forward Send OnComSelectGroup llOldGroup llNewGroup End_Procedure METHOD OCX_SelectGroup(OldGroup,NewGroup) CLASS MainDialog RETURN NIL void onEvent_SelectGroup(COM _OldGroup,COM _NewGroup) { } function SelectGroup as v (OldGroup as OLE::Exontrol.ListBar.1::IGroup,NewGroup as OLE::Exontrol.ListBar.1::IGroup) end function function nativeObject_SelectGroup(OldGroup,NewGroup) return |
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