Use a radio button instead of a listbox when necessary.

fixes #311