Here's a small script that I use to test:
package require Tk
package require BWidget
frame .fm
ComboBox .fm.c -values "apple pear orange" -editable false
#
# Of course the bind below doesn't work because there is no
<<LisboxSelect>>
# event being generated by the ComboBox
#
bind .fm.c <<ListboxSelect>> { tk_messageBox -message "Select!" }
pack .fm.c
pack .fm
When using Tile, this is simple:
ttk::combobox .fm.c -values "apple pear orange" -state readonly
bind .fm.c <<ComboboxSelected>> { tk_messageBox -message
"Select!" }
Is there a way to get BMWidget::ComboBox to throw an event on
selection change?
Thanks in advance,
Victor
Take a look at the -modifycmd option of the widget. This specifies a
command to call anytime a new option is selected in the drop down
window.
Damon
Damon,
Of course! Thank you, that did the trick! I guess I was so focused on
looking for a binding that I missed an option.
VIctor