Menu

#22 Clicking "enabled" parameter checkbox only sometimes works

1.0
closed
None
5
2014-12-05
2014-10-29
No

Clicking the "enabled" checkbox next to parameters in the Property View only seems to sometimes work for me. I can click an empty box multiple times and it won't check, or click a checked box multiple times and it won't clear itself.

Discussion

  • Jordan Deyton

    Jordan Deyton - 2014-10-29

    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 EditingSupport framework.

     
  • Anna Wojtowicz

    Anna Wojtowicz - 2014-10-29

    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.

     
  • Jordan Deyton

    Jordan Deyton - 2014-12-02

    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.

     
  • Jordan Deyton

    Jordan Deyton - 2014-12-02
    • status: open --> pending
     
  • Anna Wojtowicz

    Anna Wojtowicz - 2014-12-05

    Yeah, clicking slower appears to work as intended. But I want to click ALL the things. :c

     
  • Anna Wojtowicz

    Anna Wojtowicz - 2014-12-05
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB