Type | Description | |||
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 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 |
private void ToolBarClick(object sender, AxEXSURFACELib._ISurfaceEvents_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: AxEXSURFACELib._ISurfaceEvents_ToolBarClickEvent); begin end; begin event ToolBarClick(long ID,long SelectedID) end event ToolBarClick Private Sub ToolBarClick(ByVal sender As System.Object, ByVal e As AxEXSURFACELib._ISurfaceEvents_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(oSurface,ID,SelectedID) RETURN |
<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 |