event ToolBarClick (ID as Long, SelectedID as Long)
Occurs when the user clicks a button in the toolbar.

TypeDescription
ID as Long A Long expression that specifies the identifier of the button/selector being clicked.
SelectedID as Long A long expression that specifies the identifier being selected. ( the identifier being specified by the second part of the ToolBarCaption property [separated by # character ] ). For instance, if the ToolBarCaption property is "Letter#1234" the button displays the "Letter" label, the SelectedID parameter is 1234 if the user clicks the button or selects the item in a drop down field.
The control fires the ToolBarClick event when the user clicks a button or selects a value in the control's toolbar. The ToolBarCaption property specifies the caption of the button. The ToolBarToolTip property specifies the button's tooltip. Use the ToolBarRefresh method to refresh the control's toolbar. Use the ToolBarFormat property to add new buttons, to display icons, pictures, or any other HTML caption.

The following screen shot shows the control's default toolbar:

For instance, clicking the Home button, generates the ToolBarClick(100) event. Instead selecting a new value from the zoom field ( drop-down field ), generates ToolBarClick(101,zoom) where the zoom is the zoom-factor being chosen.

Syntax for ToolBarClick event, /NET version, on:

private void ToolBarClick(object sender,int ID,int SelectedID)
{
}

Private Sub ToolBarClick(ByVal sender As System.Object,ByVal ID As Integer,ByVal SelectedID As Integer) Handles ToolBarClick
End Sub

Syntax for ToolBarClick event, /COM version, on:

private void ToolBarClick(object sender, AxEXSWIMLANELib._ISwimLaneEvents_ToolBarClickEvent e)
{
}

void OnToolBarClick(long ID,long SelectedID)
{
}

void __fastcall ToolBarClick(TObject *Sender,long ID,long SelectedID)
{
}

procedure ToolBarClick(ASender: TObject; ID : Integer;SelectedID : Integer);
begin
end;

procedure ToolBarClick(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_ToolBarClickEvent);
begin
end;

begin event ToolBarClick(long ID,long SelectedID)
end event ToolBarClick

Private Sub ToolBarClick(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_ToolBarClickEvent) Handles ToolBarClick
End Sub

Private Sub ToolBarClick(ByVal ID As Long,ByVal SelectedID As Long)
End Sub

Private Sub ToolBarClick(ByVal ID As Long,ByVal SelectedID As Long)
End Sub

LPARAMETERS ID,SelectedID

PROCEDURE OnToolBarClick(oSwimLane,ID,SelectedID)
RETURN

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

<SCRIPT EVENT="ToolBarClick(ID,SelectedID)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function ToolBarClick(ID,SelectedID)
End Function
</SCRIPT>

Procedure OnComToolBarClick Integer llID Integer llSelectedID
	Forward Send OnComToolBarClick llID llSelectedID
End_Procedure

METHOD OCX_ToolBarClick(ID,SelectedID) CLASS MainDialog
RETURN NIL

void onEvent_ToolBarClick(int _ID,int _SelectedID)
{
}

function ToolBarClick as v (ID as N,SelectedID as N)
end function

function nativeObject_ToolBarClick(ID,SelectedID)
return