Clicking "enabled" parameter checkbox only sometimes works
Modeling and Simulation made NiCE!
Brought to you by:
amccaskey,
jayjaybillings
One problem I'm aware of is that the first click won't always work. This is because we use an image that looks like a checkbox. When the cell is clicked and acquires focus, the image is replaced with an actual checkbox.
This means the first attempt to change the box won't work. I don't think there's a nice way to get around this without hacking around the JFace
EditingSupportframework.I've been aware of the first-click issue, although this is talking about 2, 3... 15 clicks not being able to change the box state. I just played around with it a bit more and I think where on the box I click seems to be the issue.
When I click the cell to focus it, and then click precisely in the middle of the box, it changes states. But when I click the cell to focus it, and then click closer to the edge of the checkbox (but still inside), it sometimes doesn't take, no matter how many times I click it (until I try clicking closer to the middle).
This only seems to happen when bringing a box into focus. If it's already in focus, it doesn't seem as finicky about precisely where in the checkbox you click.
I think I may have found the problem.
In an SWT Table, if you double-click a cell, it selects the entire row. If you repeatedly "double" click the cell, focus alternates between the cell and the row.
Basically, not giving enough time between clicks prevents the checkbox state from changing, because it's just focusing on different widgets (the cell versus the row).
For the record, this behavior appears to be the same on both win32 and gtk.
If you are experiencing strange behavior different from what I described above, let me know. Otherwise, I'll close the ticket.
Yeah, clicking slower appears to work as intended. But I want to click ALL the things. :c