Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002917 [JEDI VCL] 00 JVCL Components minor always 2005-04-27 12:54 2005-05-12 12:42
Reporter anonymous View Status public  
Assigned To outchy
Priority normal Resolution fixed  
Status resolved   Product Version 3.00
Summary 0002917: TJvXPBar highlights wrong items
Description When the mouse is hovering over the top half of an item in TJvXPBar, the previous item is highlighted.

The fix is in TJvXPBar.HookMouseMove. Note that I have HeaderHeight := 16, ItemHeight := 14, TopSpace := 0. When I counted actual pixels above the first item, I counted 23, whereas the value calculated was 30.

I'm not sure if this is the best solution, but it works in my case. Somebody please verify my calculations.

Change this:

  Header := FC_HEADER_MARGIN + HeaderHeight + FC_ITEM_MARGIN;

to:

  Header := FC_HEADER_MARGIN div 2 + HeaderHeight + FC_ITEM_MARGIN div 2 + FTopSpace;

and change this:

  NewIndex := (Y - Header) div ((Height - Header + 4 - FTopSpace) div FVisibleItems.Count);

to:

  NewIndex := (Y - Header) div ItemHeight;

Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007147)
outchy (administrator)
2005-05-12 12:39

There are other bugs when calculating the header rect and the roll button rect.
I think they are fixed with the modification I made.

- Issue History
Date Modified Username Field Change
2005-04-27 12:54 anonymous New Issue
2005-05-12 12:13 outchy Status new => confirmed
2005-05-12 12:26 outchy Note Added: 0007146
2005-05-12 12:38 outchy Note Deleted: 0007146
2005-05-12 12:39 outchy Note Added: 0007147
2005-05-12 12:42 outchy Status confirmed => resolved
2005-05-12 12:42 outchy Resolution open => fixed
2005-05-12 12:42 outchy Assigned To => outchy


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker