View Issue Details

IDProjectCategoryView StatusLast Update
0002049JEDI VCL00 JVCL Componentspublic2004-11-30 03:58
ReporteranonymousAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.00 RC 1 
Summary0002049: JvDBTreeView
DescriptionIf table is ampty, on insert I got exception.
In
procedure TCustomJvDBTreeView.KeyDown(var Key: Word; Shift: TShiftState);
I changed, added:
          //Add
          //Pataisyta
          if Selected = nil then
            AddChildNode(nil, True).EditText
          else
            AddChildNode(Selected.Parent, True).EditText;
          end;
          //Pataisyta
TagsNo tags attached.

Relationships

has duplicate 0002050 closed JvDBTreeView 

Activities

AHUser

2004-08-20 07:02

developer   ~0005035

I can't see the problem. "Selected" is garanteed to be not NIL in the "//Add" section.

Excerpt of the TJvCustomTreeView KeyDown method:

    VK_INSERT:
      if not IsEditing then
      begin
        FSelNode := Selected;
        if not Assigned(Selected) or ([ssAlt] = Shift) then
          //AddChild
          AddChildNode(Selected, True).EditText
        else
          //Add
          AddChildNode(Selected.Parent, True).EditText;
      end;

obones

2004-11-19 00:59

administrator   ~0005661

Please try with the latest zip files available here:

http://jvcl.sf.net/daily/
http://jcl.sf.net/daily/

If we don't hear from you in the next 7 days, we will consider this issue fixed.

obones

2004-11-30 03:58

administrator   ~0005765

It has been 11 days, this issue is now considered as resolved. Please post a new one should you think this is not the case.

Issue History

Date Modified Username Field Change
2004-08-11 05:54 anonymous New Issue
2004-08-20 07:02 AHUser Note Added: 0005035
2004-08-20 07:02 AHUser Status new => feedback
2004-10-01 00:09 obones Relationship added has duplicate 0002050
2004-11-19 00:59 obones Note Added: 0005661
2004-11-30 03:58 obones Status feedback => resolved
2004-11-30 03:58 obones Resolution open => fixed
2004-11-30 03:58 obones Assigned To => obones
2004-11-30 03:58 obones Note Added: 0005765
2004-11-30 03:58 obones Assigned To obones =>