event ClickingPart (Part as PartEnum)
Occurs while the user keeps clicking the part.

TypeDescription
Part as PartEnum A PartEnum expression being clicked.
The ClickingPart event is fired continuously while the user keeps clicking the part of the control. The ClickPart event is fired when the user clicks and releases the left mouse button over the part of the control. The VisibleParts property is similar to VisiblePart property, excepts that all parts must be specified. By default, when a part becomes visible, the EnablePart property is automatically called, so it becomes enabled. Use the Background property to specify a visual appearance for a specified part of the control in a certain state.

Syntax for ClickingPart event, /NET version, on:

private void ClickingPart(object sender,exontrol.EXSCROLLBARLib.PartEnum Part)
{
}

Private Sub ClickingPart(ByVal sender As System.Object,ByVal Part As exontrol.EXSCROLLBARLib.PartEnum) Handles ClickingPart
End Sub

Syntax for ClickingPart event, /COM version, on:

private void ClickingPart(object sender, AxEXSCROLLBARLib._IScrollBarEvents_ClickingPartEvent e)
{
}

void OnClickingPart(long Part)
{
}

void __fastcall ClickingPart(TObject *Sender,Exscrollbarlib_tlb::PartEnum Part)
{
}

procedure ClickingPart(ASender: TObject; Part : PartEnum);
begin
end;

procedure ClickingPart(sender: System.Object; e: AxEXSCROLLBARLib._IScrollBarEvents_ClickingPartEvent);
begin
end;

begin event ClickingPart(long Part)
end event ClickingPart

Private Sub ClickingPart(ByVal sender As System.Object, ByVal e As AxEXSCROLLBARLib._IScrollBarEvents_ClickingPartEvent) Handles ClickingPart
End Sub

Private Sub ClickingPart(ByVal Part As EXSCROLLBARLibCtl.PartEnum)
End Sub

Private Sub ClickingPart(ByVal Part As Long)
End Sub

LPARAMETERS Part

PROCEDURE OnClickingPart(oScrollBar,Part)
RETURN

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

<SCRIPT EVENT="ClickingPart(Part)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function ClickingPart(Part)
End Function
</SCRIPT>

Procedure OnComClickingPart OLEPartEnum llPart
	Forward Send OnComClickingPart llPart
End_Procedure

METHOD OCX_ClickingPart(Part) CLASS MainDialog
RETURN NIL

void onEvent_ClickingPart(int _Part)
{
}

function ClickingPart as v (Part as OLE::Exontrol.ScrollBar.1::PartEnum)
end function

function nativeObject_ClickingPart(Part)
return

The following VB sample displays a message when the user clicks the exLeftB1Part part of the control:

Private Sub ScrollBar1_ClickPart(ByVal Part As EXSCROLLBARLibCtl.PartEnum)
    If (Part = exLeftB1Part) Then
        MsgBox ("Click")
    End If
End Sub

The following VB.NET sample displays a message when the user clicks the exLeftB1Part part of the control:

Private Sub AxScrollBar1_ClickPart(ByVal sender As System.Object, ByVal e As AxEXSCROLLBARLib._IScrollBarEvents_ClickPartEvent) Handles AxScrollBar1.ClickPart
    If (e.part = EXSCROLLBARLib.PartEnum.exLeftB1Part) Then
        MsgBox("Click")
    End If
End Sub

The following C++ sample displays a message when the user clicks the exLeftB1Part part of the control:

void OnClickPartScrollbar1(long Part) 
{
	if ( Part == 32768 /*exLeftB1Part*/ )
		MessageBox( "Click" );
}

The following C# sample displays a message when the user clicks the exLeftB1Part part of the control:

private void axScrollBar1_ClickPart(object sender, AxEXSCROLLBARLib._IScrollBarEvents_ClickPartEvent e)
{
    if (e.part == EXSCROLLBARLib.PartEnum.exLeftB1Part)
        MessageBox.Show("Click");
}

The following VFP sample displays a message when the user clicks the exLeftB1Part part of the control:

*** ActiveX Control Event ***
LPARAMETERS part

if ( part = 32768 )
	wait window "click"
endif