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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -