I have a few questions about reordering desktop listbox control (so API 2) using Xojo 2024r4.2.
-
I have drawn my own disclosure triangles but the checkboxes and the drop indicators do not respect the byref width value set in the paint event. So no matter what width I set the checkboxes are always rendered in same spot. Same with the reorder drop indicators. The depth does not match the updated values. I can move checkboxes to end of the list but looks a little odd. Is there a way to set this value, I tried column alignment offset, but it seemed to have no effect.
-
In the DragReorderRows Event, if you select too many items from a folder above and drop them into a folder, at the same depth, below the selected items the parent row is incorrect.
So selecting all the files in Sub 1 Folder 1 and dropping them into sub 2 folder 2 the NewPosition is 4 and the Parent Row is 9.
I thought the passed in values are based on all the selected items being removed first then looking at where they need to go. All other drags seem to work just fine.
I might be able to trap it if the parent row is out of bounds or not an expandable row and look at the new position and figure it out from there.
Seems like it has been doing this for a few Xojo versions now, at least 2021r1.1
TLDR;
-
Can I set where checkboxes are shown in column 0 if I am drawing my own disclosure triangle and passing back width and height for the hit tests.
-
Can I change the “depth” of a row so it draws reorder drop indicators correctly, based on custom disclosure triangles.
-
Am I correctly calculating where to put the reordered items, and is dragging more from above to below a Framework bug?
Also how can a parent row be higher than the new position?
Workaround for reorder is if the parent row is >= new position assume wrong and drop 1 above new position
7 posts - 3 participants