You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Good day!
When mouse any event on worksheet, i want get screen coordinate cursor.
Grid.OnMouse* - not worked.
Scrool.OffsetXY not help.
Enable Grid.OnMouse* events, please
Or add Scroll.Pos property...
Thank you!
Offline
Hi, you can use CellMouseDown, CellMouseUp, CellMouseMove, CellMouseEnter and CellMouseLeave, they are event from worksheet instance.
var sheet = grid.Worksheets[0];
sheet.CellMouseDown += ...
In this event handler, use the AbsolutePosition property to get cursor position.
For scroll-bars, try use control event WorksheetScrolled.
grid.WorksheetScrolled += ...
Offline
Oh.. i understend!
In grid.WorksheetScrolled event i must always increment variable...
public float deltaY;
...
Grid1.WorksheetScrolled += (s, e) => {
deltaY += e.OffsetY;
};
Thank you!
But... if in the cell properties would be something like, Cells.RelativeGridScreenPos , this wonderful component would be more wonderful
Offline
OK, Thank you! We will consider to add such position properties for cell instance in future versions.
Offline