i created a listview with report mode and defined that the first and fifth column is right-aligned.
i also used FullRowSelect=False and AutoSelectFirstItem=False

after i created the report i get this:

Name:  listview align wrong.jpg
Views: 8239
Size:  13.0 KB

the first item is auto selected but i used AutoSelectFirstItem=False and the alignment is switched from right to left because the item was autoselect...


normally it should look like this:

Name:  listview align ok.jpg
Views: 8403
Size:  13.9 KB

after i click on another item it looks like this:

Name:  listview align wrong mouse click.jpg
Views: 8279
Size:  13.1 KB

1. i can avoid this alignment-swapping when i set FullRowSelect=True.

2. if AutoSelectFirstItem is set to False the control should not autoselect the first item ,or?

3. is it somehow possible to lock the listview without using enable=false to prevent user mouse clicks or keyboard inputs? i guess a .locked property would help here...

Example project: test - ListView Alignment bug.zip