View Issue Details

IDProjectCategoryView StatusLast Update
0005268JEDI VCL00 JVCL Componentspublic2010-11-09 14:41
ReporterMarkAureliusAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.39 
Target VersionFixed in Version 
Summary0005268: The MouseToCell method doesn't work for TJvDrawGrid
DescriptionI added this event to work out if the MouseToCell method did what I wanted, i.e. convert the x and y or mouse position to row and col of the cell at x,y:

procedure TfmWeekProcessing.grdAttendancesMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
var col, row: integer;
begin
 grdAttendances.MouseToCell(x, y, col, row);
 StatusBar1.Panels[1].Text := Format('X=%d Y=%d col=%d row=%d', [x, y, col, row]);
end;

The values returned to col and row were always -1. I changed the type of the grid in the DFM to TDrawGrid, and then MouseToCell gave the correct values.
TagsNo tags attached.

Activities

MarkAurelius

2010-06-23 03:50

reporter   ~0017511

It seems I have posted this in error. I jumped to a wrong conclusion. The -1 I was seeing was returned when the mouse is over a part of the grid.

obones

2010-08-20 11:44

administrator   ~0017595

Please provide the zipped sources of a sample application showing this

obones

2010-10-08 16:01

administrator   ~0017808

So what should we do here?

obones

2010-11-09 14:41

administrator   ~0018050

Well, I'm assuming there was no bug

Issue History

Date Modified Username Field Change
2010-06-22 10:00 MarkAurelius New Issue
2010-06-23 03:50 MarkAurelius Note Added: 0017511
2010-08-20 11:44 obones Note Added: 0017595
2010-08-20 11:44 obones Status new => feedback
2010-10-08 16:01 obones Note Added: 0017808
2010-11-09 14:41 obones Note Added: 0018050
2010-11-09 14:41 obones Status feedback => resolved
2010-11-09 14:41 obones Resolution open => no change required
2010-11-09 14:41 obones Assigned To => obones