listview - Firemonkey TListview Behavour -
when using tlistview in delphi, if click below last list item selected item becomes nil (itemindex = -1).
when using tlistview in firemonkey, if click below last list item selected item last item on list. not want happen. if click below last item, want no item selected.
i @ loss. there way or have missed here or off-base?
thanks.
the problem @ fmx.listview.pas unit @ finditemabsoluteat procedure, line 4060.
this code:
if viewat >= heightsums[heightsums.count - 1] exit(heightsums.count - 1);
replace code:
if viewat >= heightsums[heightsums.count - 1]+getitemheight(heightsums.count-1) exit(-1);
and system start work logically.
source: https://pjstrnad.com/another-fix-delphi-code-click-listview/
Comments
Post a Comment