We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to capture click and double click events?

Thread ID:

Created:

Updated:

Platform:

Replies:

6419 Aug 12,2003 09:22 AM Aug 19,2003 10:51 AM Windows Forms 1
loading
Tags: EditControl
Dan Kari
Asked On August 12, 2003 09:22 AM

Hi, How may you capture click and a double click events in the indicator margin (left margin), the line number margin, the user area and the user margin (right margin)? When the events occur I need to know: 1. The margin (indicator/line/textarea/user), 2. The line; and 3. The column where the event occured in order to add a bookmark/toggle a bookmark/custom indicator or perform some other processing. I've looked at the class reference events and none of the event handler prototypes seem to pass any margin/line/column information. Many thanks, Heinrich

Administrator [Syncfusion]
Replied On August 19, 2003 10:51 AM

Hi Heinrich, All these are handled via the Mouse_Down event handler, although there are no discrepencies as to where the click was made. However, you could add your own logic to determine which area the user clicked in. To determine the line and character clicked, the edit control has the following method which returns an EditLocation: editControl1.GetLineChar(int X, int Y); Please let me know if this is the information you are looking for. Regards, Guru Patwal.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;