View Issue Details

IDProjectCategoryView StatusLast Update
0002314JEDI VCL00 JVCL Componentspublic2006-06-08 02:44
ReporterglchapmanAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.30 
Summary0002314: JvInspector paints incorrectly when UseBands = True
DescriptionWhen the UseBands property is True, TJvInspector does not draw the property names or buttons for items in the second band. (You can see this by running the InspectorSimpleExample after changing the UseBands property to True). I believe the problem is in TJvInspectorBorlandNETBasePainter.SetupRects: the various uses of Inspector.DividerAbs should really be using ItemRect2.Left+Inspector.DividerAbs, since, in bands after the first, ItemRect2.Left > 0 (it is the left boundary of the band).
Additional InformationIt would probably be worthwhile to cache the value of ItemRect2.Left+Inspector.DividerAbs in a local for the routine, rather than recalculating it several times.
TagsNo tags attached.

Activities

anonymous

2004-12-01 12:37

viewer   ~0005801

Here's a couple of other cosmetic problems.

1) If you use a font which produces a text height > 16, inspectors don't draw correctly (the rows are too short, so the text is cut off). I think TJvInspector should override FontChanged and update its ItemHeight based on the height of the current font.

2) TJvInspectorBooleanItem: when using larger ItemHeights, the checkboxes are drawn too high in the value area. I think TJvInspectorBooleanItem.DrawValue should either increase the size of the checkboxes (based on the height ov the value area) or vertically center the checkboxes in the value area.

marcelb

2005-09-17 13:18

manager   ~0007942

Hmm, who changed that code? I'm positive that worked in the version I released, but lots of changes have been made at a later point (either to improve the performance, or add new features.

To the author of the anonymous note: please create separate bug reports; these two things have nothing to do with this bug.

obones

2006-04-03 05:59

administrator   ~0008839

Does this still happen in the latest version?

obones

2006-06-08 02:44

administrator   ~0009436

Well, no answers, I'm assuming this is fixed in the latest daily version:

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

Issue History

Date Modified Username Field Change
2004-11-12 15:55 glchapman New Issue
2004-12-01 12:37 anonymous Note Added: 0005801
2005-09-17 13:18 marcelb Note Added: 0007942
2006-04-03 05:59 obones Note Added: 0008839
2006-04-03 05:59 obones Status new => feedback
2006-06-08 02:44 obones Status feedback => resolved
2006-06-08 02:44 obones Resolution open => fixed
2006-06-08 02:44 obones Assigned To => obones
2006-06-08 02:44 obones Note Added: 0009436