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.

IsOverImage attribute not set to true when the mouse is click over an image.

Thread ID:

Created:

Updated:

Platform:

Replies:

25502 Feb 28,2005 05:18 PM Mar 1,2005 11:22 AM Windows Forms 3
loading
Tags: GridControl
Dongxian Li
Asked On February 28, 2005 05:18 PM

Hi, I have a virtual grid control and the celltype is set to ComboBox and DerivedComboBox. I set an image to the cell, I want to know if the click is over the image when user clicks the cell. I used e.IsOverImage. It always returns false even though I am clicking on the image. Is this a bug and can you suggest a workaround? Thanks Dongxian

Administrator [Syncfusion]
Replied On February 28, 2005 06:03 PM

IsOverImage only applies to a Static celltyle where style.ImageIndex and style.ImageList is used to set the image into the cell. Here is the class reference entry on this property. /// Indicates if the mouse was over an image (see cref="GridStyleInfo.ImageIndex") /// in a static cell when the mouse was released. How are you putting teh image into your combobox? Do you know a relative rectangle in the cell where teh image is being drawn? If so, you can see if the click point is in this releative rectangle offset by the top-left corner of teh cell which you can get from a call to grid.ViewLayout.RowColToPoint.

Dongxian Li
Replied On March 1, 2005 10:05 AM

Thanks. I set the ImageList and ImageIndex of the ComboBox. Since I know the size of the image so I am able to get if the click is within the image rectangle using the RowColToPoint() method. But it would be so much better if IsOverImage is set to true by the grid automatically since the property is already there. Can this be an enhancement in the future? Thanks Dongxian

Administrator [Syncfusion]
Replied On March 1, 2005 11:22 AM

Yes. This has been entered as defect #72 in our Open Issues database.

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.

;