View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003022 | JEDI VCL | 00 JVCL Components | public | 2005-06-09 10:23 | 2005-08-03 08:05 |
Reporter | anonymous | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 | ||||
Target Version | Fixed in Version | 3.10 | |||
Summary | 0003022: TJvListview item click not selected | ||||
Description | Sometimes if you click on a item of the TJvListView, it is not selected. To reproduce this, create a new application, drop a TJvListView on it. Change the viewStyle to vsReport. Now add for example 3 columns (give them some titles) Now add 3 or 4 items (and give them some caption) To exactly reproduce the error, do this... - Click on the first item - Now click under the last item (i mean under, in the empty space of listview but inside it) You have to see that the item 1 previously selected, remains with a box. - Now try to select the second or third item. | ||||
Tags | No tags attached. | ||||
|
Reproduced in D6, WinXP |
|
Reproduced in D7/W2K Modified SetFocus as follows to resolve: procedure TJvListView.SetFocus; var // added k: integer; // added begin inherited SetFocus; if (ItemFocused=nil) // added then k:=0 // added else // added k:=ItemIndex; // added if AutoSelect and (Selected = nil) and (Items.Count > 0) then // PostMessage(Handle, WM_AUTOSELECT, Integer(Items[0]), 1); PostMessage(Handle, WM_AUTOSELECT, Integer(Items[k]), 1); // changed end; Not particularly elegant, but very clear and will no doubt allow someone with cvs access to fix properly. Cheers, EdB |
|
edbored patch works for this issue ... |
|
Setting AutoSelect to False allows to go around that bug. But a slightly modified version of the fix by edbored is now in CVS. |
Date Modified | Username | Field | Change |
---|---|---|---|
2005-06-09 10:23 | anonymous | New Issue | |
2005-06-11 09:31 | obones | Note Added: 0007424 | |
2005-06-11 09:31 | obones | Status | new => confirmed |
2005-07-19 21:45 | edbored | Note Added: 0007577 | |
2005-07-31 16:07 | anonymous | Note Added: 0007649 | |
2005-08-03 08:05 | obones | Status | confirmed => resolved |
2005-08-03 08:05 | obones | Resolution | open => fixed |
2005-08-03 08:05 | obones | Assigned To | => obones |
2005-08-03 08:05 | obones | Note Added: 0007659 |