View Issue Details

IDProjectCategoryView StatusLast Update
0001504JEDI VCL00 JVCL Componentspublic2004-03-20 01:33
ReporteranonymousAssigned Touser72 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001504: A problem with using TJvDBSpinEdit
DescriptionHi,

I've got a small problem with DataSet scrolling via
TJvDBGrid: DataSet is in dsEdit state (Indicator column
also indicates so) in case there is a TJvDBSpinEdit
control on the form, although no manipulating/editing
operation was performed on it, only displayed data was changed in spin edit. After the analysis, there
is a little bug appeared in JvDBSpinEdit unit.
I lightly looked on JvDBSpinEdit source code and made
some small modification which seems to remedy the
problem above.
The modification is made in TJvDBSpinEdit.DoChange
method (the first line is commented out and it's
consequently replaced by subsequent four lines). Then,
the DoChange method should look like this:

procedure TJvDBSpinEdit.DoChange(Sender: TObject);
begin
// if FFieldDataLink.Edit then
if (FFieldDataLink <> nil) and
(FFieldDataLink.Field <> nil) and
(FFieldDataLink.Field.AsString <> Self.Text) and
FFieldDataLink.Edit then
begin
FFieldDataLink.Modified; { Data has changed. }
if Assigned(FOnChange) then
FOnChange(Self);
end;
end;

(The attached file contains it at all)

Maybe there are better ways to workarround this problem,
indeed I don't inspect them at large.

Thank you for you labour.

Best regards,

Martin Kvoch
kvoch@civ.zcu.cz
TagsNo tags attached.

Activities

2004-03-20 00:49

 

JvDBSpinEdit.pas (7,548 bytes)

user72

2004-03-20 01:33

  ~0003401

Thanks. Fixed in CVS

Issue History

Date Modified Username Field Change
2004-03-20 00:49 anonymous New Issue
2004-03-20 00:49 anonymous File Added: JvDBSpinEdit.pas
2004-03-20 01:33 user72 Status new => resolved
2004-03-20 01:33 user72 Resolution open => fixed
2004-03-20 01:33 user72 Assigned To => user72
2004-03-20 01:33 user72 Note Added: 0003401