Notes |
(0015404)
nestor (reporter)
2009-04-11 15:07
|
Bug fixed by adding this code to "TJVDBGrid.onMouseDown"
var
Cell: TGridCoord;
begin
if Assigned(Datasource) and (Datasource.state in [dsEdit,dsInsert]) then
begin
MouseToCell(X,Y,Cell.X,cell.y);
if Cell.Y = -1 then
CloseControl;
end;
end; |
|
(0015478)
obones (administrator)
2009-04-29 15:30
|
I'm sorry, but the demo gives me an exception when leaving the editor: "unable to access field description as text".
This is under Delphi 2006.
Could you check why? |
|
(0015493)
nestor (reporter)
2009-04-29 16:18
|
I works with Delphi2007.
Description field type changes from blob to string
see Sample.zip |
|
(0015785)
obones (administrator)
2009-07-08 15:26
|
Ok, I can now see the bug.
But your fix does not work, it does not change the behavior under D2009 at the very least. |
|
(0015789)
nestor (reporter)
2009-07-08 18:21
|
I'am using this fix now, and it works under D2007.
procedure ..MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
Cell: TGridCoord;
begin
if Assigned(Datasource) and (Datasource.state in [dsEdit, dsInsert]) then
begin
MouseToCell(X, Y, Cell.X, cell.y);
if Cell.Y = -1 then
CloseAllControls;
end;
... |
|
(0015958)
obones (administrator)
2009-08-07 11:54
|
Where do you put this code?
Inside the TJvDBGrid.MouseDown procedure? If yes, where in this procedure? |
|
(0015962)
nestor (reporter)
2009-08-07 13:47
|
Forget this code, it's a very bad fix.
New indication:
No more bug reported when dgIndicator is not in TJVDBGrid.options.
(see code at line: 2368 in TJVDBGRID unit , procedure Mousedown ) |
|
(0016167)
obones (administrator)
2009-09-23 17:10
|
Then, what should be done here? |
|
(0016173)
nestor (reporter)
2009-09-23 18:43
|
Just add before the line 2338 in jvDBGRID.pas (REV. 12461) this condition:
if Cell.Y < 0 then //(or if Cell.Y = -1 then ) |
|
(0016174)
nestor (reporter)
2009-09-23 18:46
|
Sorry
2009-09-23 18:43
Just add before the line 2338 in jvDBGRID.pas (REV. 12461) this condition:
if Cell.Y >= 0 then //(or if Cell.Y <> -1 then ) |
|
(0016963)
obones (administrator)
2009-12-04 16:03
|
Thanks, this is now fixed in SVN |
|