I need a widget for show "rating stars" in a SmartClient DynamicDialog. This sort of thing is becoming fairly common for rating threads in forums, songs in playlists, etc.
A simple version of the widget would handle only integer values and use "set" and "unset" images to display the value. Clicking on an image would set that image and all to the left (below), and unset all to the right (above).
A more sophisticated version would handle float values and would use an image (e.g., a star) as a mask through which an underlying "thermometer bar" would be displayed. The number of images (stars) would correspond to the range of the input. The length of the "thermometer bar" would correspond to the float value being displayed, and it would respond to mouse inputs. This would be pretty similar to the current "slider" widget, but with a different sort of value display. Like a slider, the size of the value increment could be configurable.
Jeff
A simple version of the widget would handle only integer values and use "set" and "unset" images to display the value. Clicking on an image would set that image and all to the left (below), and unset all to the right (above).
A more sophisticated version would handle float values and would use an image (e.g., a star) as a mask through which an underlying "thermometer bar" would be displayed. The number of images (stars) would correspond to the range of the input. The length of the "thermometer bar" would correspond to the float value being displayed, and it would respond to mouse inputs. This would be pretty similar to the current "slider" widget, but with a different sort of value display. Like a slider, the size of the value increment could be configurable.
Jeff
Comment