Mouse down in listbox doesn't work on selected item with multiselect on

We have a listbox in a plugin with some ownerdraw code, which draws a image of a checkbox at the right side of the listbox
In de onmousedown event the listbox.items.object is modified
In de onDrawItem the image is drawn on the canvas based on the value in listbox.items.object.
De listbox has multiselect = true.
When we click on a image in a not selected line the onmousedown event is fired
When we select a line in the listbox and click on the image of that line the onmousedown event is not fired.
When multiselect = false the onmousedown event is fired, but the onClick event is fired twice.

How can we solve this? We need the listbox to be multiselect
I have attached a sample project to demonstrate the issue.

HydraListboxSample.zip (58.3 KB)

.

does listbox work for you correctly if you create app w/o hydra and put controls & code from plugin to main form?

Yes it works correct in a delphi project without Hydra.

what version of Hydra you are using?

I’ve tested with RemObjects Hydra - 4.0.83.1127.exe and it works as expected:

We have RemObjects Hydra - 4.0.83.1127 installed. You sure the multiselect of the list box is true? And you have to select a item and then click that same item again.

I’ve used your testcase where multiselect is true.
yes, I did this. everything works