Here is something that our team is asking me about.
There are a variety of input tools used when scripting, like rs.MessageBox, rs.MultiListBox, rs.StringBox, etc.
The users are expecting that if the OK button is already highlighted, pressing the spacebar or Enter will engage the OK button. That’s a reasonable expectation. But here is what we are finding:
- rs.MessageBox works as expected. Enter or spacebar activates the OK button, the box closes as expected.
- rs.MultiListBox does not. Pressing the spacebar deselects the selected objects and only leaves the last selected object in the list. The Enter key does nothing.
- rs.StringBox doesn’t have the OK button highlighted, but Enter works anyway. The spacebar doesn’t, but since the whole point is to enter a string of text, it would be frustrating if it did close the box. So no real complaints about this one.
- rs.ListBox had OK highlighted, and Enter activates that button. But the spacebar doesn’t. It seems like it should for this method.
- rs.PropertyListBox works with both Enter and the spacebar.
- rs.ComboListBox has the OK button highlighted, and is activated with the Enter key. However, the spacebar deselects your choice and leaves it blank. There looks like room for improvement here, especially since the selected item in the ComboListBox can’t be edited like it was in V5.
- rs.EditBox. Neither works, but that makes sense. Enter moves to the next line, and that’s is preferred over closing the box, No complaints about this one.
- rs.CheckListBox has the spacebar unselecting the last selected item instead of engaging the OK button. Enter works fine.
To us, it seems there is room for improvement, for the sake of consistency, on a few of these methods.
Thanks,
Dan