event Click ()
Occurs when the user presses and then releases the left mouse button over the control.

TypeDescription
The Click event notifies your application once the user presses and releases the let mouse button over the control. Unlike Click event, the RClick event occurs once the user right clicks the control. The Click event does not occur, if the user presses the left mouse button, drag to a new position and releases the button. By default, the control selects the event being clicked. You can use the AllowSelectEvent property to disable selecting the event being clicked. Use a MouseDown or MouseUp event procedure to specify actions that will occur when a mouse button is pressed or released. Unlike the Click and DblClick events, MouseDown and MouseUp events lets you distinguish between the left, right, and middle mouse buttons. You can also write code for mouse-keyboard combinations that use the SHIFT, CTRL, and ALT keyboard modifiers. 

During Click event you can use the ...FromPoint(-1,-1) properties to get UI elements of the scheduler from the cursor as follows:

All ...FromPoint properties that returns an Object, may return Nothing, Empty or NULL, if no object is found.

Syntax for Click event, /NET version, on:

private void Click(object sender)
{
}

Private Sub Click(ByVal sender As System.Object) Handles Click
End Sub

Syntax for Click event, /COM version, on:

private void ClickEvent(object sender, EventArgs e)
{
}

void OnClick()
{
}

void __fastcall Click(TObject *Sender)
{
}

procedure Click(ASender: TObject; );
begin
end;

procedure ClickEvent(sender: System.Object; e: System.EventArgs);
begin
end;

begin event Click()
end event Click

Private Sub ClickEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClickEvent
End Sub

Private Sub Click()
End Sub

Private Sub Click()
End Sub

LPARAMETERS nop

PROCEDURE OnClick(oSchedule)
RETURN

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

<SCRIPT EVENT="Click()" LANGUAGE="JScript">
</SCRIPT>

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

Procedure OnComClick 
	Forward Send OnComClick 
End_Procedure

METHOD OCX_Click() CLASS MainDialog
RETURN NIL

void onEvent_Click()
{
}

function Click as v ()
end function

function nativeObject_Click()
return

The following samples display the date/time from the cursor.

VBA (MS Access, Excell...)

' Click event - Occurs when the user presses and then releases the left mouse button over the control.
Private Sub Schedule1_Click()
	With Schedule1
		Debug.Print( .DateTimeFromPoint(-1,-1) )
	End With
End Sub


VB6

' Click event - Occurs when the user presses and then releases the left mouse button over the control.
Private Sub Schedule1_Click()
	With Schedule1
		Debug.Print( .DateTimeFromPoint(-1,-1) )
	End With
End Sub


VB.NET

' Click event - Occurs when the user presses and then releases the left mouse button over the control.
Private Sub Exschedule1_Click(ByVal sender As System.Object) Handles Exschedule1.Click
	With Exschedule1
		Debug.Print( .get_DateTimeFromPoint(-1,-1) )
	End With
End Sub


VB.NET for /COM

' Click event - Occurs when the user presses and then releases the left mouse button over the control.
Private Sub AxSchedule1_ClickEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxSchedule1.ClickEvent
	With AxSchedule1
		Debug.Print( .get_DateTimeFromPoint(-1,-1) )
	End With
End Sub


C++

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickSchedule1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( _bstr_t(spSchedule1->GetDateTimeFromPoint(-1,-1)) );
}


C++ Builder

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void __fastcall TForm1::Schedule1Click(TObject *Sender)
{
	OutputDebugString( PChar(Schedule1->DateTimeFromPoint[-1,-1]) );
}


C#

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
private void exschedule1_Click(object sender)
{
	System.Diagnostics.Debug.Print( exschedule1.get_DateTimeFromPoint(-1,-1).ToString() );
}
//this.exschedule1.Click += new exontrol.EXSCHEDULELib.exg2antt.ClickEventHandler(this.exschedule1_Click);


JavaScript

<SCRIPT FOR="Schedule1" EVENT="Click()" LANGUAGE="JScript">
	alert( Schedule1.DateTimeFromPoint(-1,-1) );
</SCRIPT>

<OBJECT classid="clsid:9B09E13D-7A88-4299-9DBE-383380435377" id="Schedule1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
</SCRIPT>

C# for /COM

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
private void axSchedule1_ClickEvent(object sender, EventArgs e)
{
	System.Diagnostics.Debug.Print( axSchedule1.get_DateTimeFromPoint(-1,-1).ToString() );
}
//this.axSchedule1.ClickEvent += new EventHandler(this.axSchedule1_ClickEvent);


X++ (Dynamics Ax 2009)

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void onEvent_Click()
{
	;
	print( exschedule1.DateTimeFromPoint(-1,-1) );
}

public void init()
{
	;

	super();

}

Delphi 8 (.NET only)

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
procedure TWinForm1.AxSchedule1_ClickEvent(sender: System.Object; e: System.EventArgs);
begin
	with AxSchedule1 do
	begin
		OutputDebugString( get_DateTimeFromPoint(-1,-1) );
	end
end;


Delphi (standard)

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
procedure TForm1.Schedule1Click(ASender: TObject; );
begin
	with Schedule1 do
	begin
		OutputDebugString( DateTimeFromPoint[-1,-1] );
	end
end;


VFP

*** Click event - Occurs when the user presses and then releases the left mouse button over the control. ***
LPARAMETERS nop
	with thisform.Schedule1
		DEBUGOUT( .DateTimeFromPoint(-1,-1) )
	endwith


dBASE Plus

/*
with (this.ACTIVEX1.nativeObject)
	Click = class::nativeObject_Click
endwith
*/
// Occurs when the user presses and then releases the left mouse button over the control.
function nativeObject_Click()
	local oSchedule
	oSchedule = form.Activex1.nativeObject
	? Str(oSchedule.DateTimeFromPoint(-1,-1)) 
return

local oSchedule

oSchedule = form.Activex1.nativeObject

XBasic (Alpha Five)

' Occurs when the user presses and then releases the left mouse button over the control.
function Click as v ()
	Dim oSchedule as P
	oSchedule = topparent:CONTROL_ACTIVEX1.activex
	? oSchedule.DateTimeFromPoint(-1,-1) 
end function

Dim oSchedule as P

oSchedule = topparent:CONTROL_ACTIVEX1.activex

Visual Objects

METHOD OCX_Exontrol1Click() CLASS MainDialog
	// Click event - Occurs when the user presses and then releases the left mouse button over the control.
	OutputDebugString(String2Psz( AsString(oDCOCX_Exontrol1:[DateTimeFromPoint,-1,-1]) ))
RETURN NIL



PowerBuilder

/*begin event Click() - Occurs when the user presses and then releases the left mouse button over the control.*/
/*
	OleObject oSchedule
	oSchedule = ole_1.Object
	MessageBox("Information",string( String(oSchedule.DateTimeFromPoint(-1,-1)) ))
*/
/*end event Click*/

OleObject oSchedule

oSchedule = ole_1.Object