Jump to content


CDK's Content

There have been 2 items by CDK (Search limited from 21-April 23)


By content type

See this member's

Sort by                Order  

#18088 2 small bugs (leak and vert scrollbar)

Posted by CDK on 11 October 2015 - 12:51 PM in NextInspector Component

Hi Berg!

 

I tried to understand what the problem is with the vertical scroolbar and noticed that TNxCustomInspector.GetVisibleCount always returns too big value.

I also noticed that in most other parts of the code you use this verification:

if not FItems.Node[i].Hidden and FItems.Node[i].Visible

but in the GetVisibleCount only the first part of it.

 

Changes from

    if not FItems.Node[i].Hidden and

to

    if not FItems.Node[i].Hidden and FItems.Node[i].Visible and

fixes my problem.




#17847 2 small bugs (leak and vert scrollbar)

Posted by CDK on 15 February 2015 - 12:18 PM in NextInspector Component

Hi!

 

I'm using NxInspector 5.9.9.

 

 

1) Profiler says about memory leak in TNxCustomInspector.RedrawBorder at    

Theme := OpenThemeData(Handle, DataName);

Theme must be closed by CloseThemeData (?).

 

 

2) I'm creating about 50-70 invisible properties at startup:

PropItem := PropertyGrid.Items.AddChild(...);
....
PropItem.Visible := False;

And switch them on depending on the context. But vertical scroll bar seems to use the last item number for scrolling, ignoring their visibility (see attached image).

Attached Thumbnails

  • new-1.jpg