I am pulling my hair out with a little problem with ListBox Controls. I wrote a routine the hard way, to allow the user to click checkboxes in the listbox control, and my routine would toggle the checkmarks. To do this without using events (base package :((( ), I had to use global mouse coord values, combined with the 'point to row' method of the listbox. However, after a time, it stopped working, and the coordinates got fouled up such that I have to click somewhere OUTSIDE the listbox for the 'point to row' method to register a hit.
After some diagnosis, I've narrowed it down to a much simpler problem. The property 'Content Rect Position' for the list box is returning nonsensical values - as though it thinks the panel origin is actually somewhere further inside the panel (or that the control itself is somewhere else inside the panel)! I verified this by moving the whole panel to global screen position 0,0, compared it to my global mouse indicator, and looked at where it says the content rect position should be. It seems to be thinking that the panel origin is now somewhere WELL BELOW the menu bar, instead of just underneath it. Alternatively, it thinks it is up higher in the panel than it actually is!
This was working fine for weeks, but after making numerous edits yesterday, it stopped working. I tried deleting the listbox and creating a new one, but it has the exact same problem. I figure I must be missing something here??
Any help greatly appreciated. I was supposed to roll this software out tomorrow
😞Cheers,
Avner Ginsburg