| Ticket UUID: | 1610965 | |||
| Title: | bwidget 1.7/8 ComboBox getvalue cmd fails on identical items | |||
| Type: | Bug | Version: | None | |
| Submitter: | martinlemburg | Created on: | 2006-12-07 17:25:27 | |
| Subsystem: | bwidget | Assigned To: | damonc | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2009-06-25 23:44:34 | |
| Resolution: | Fixed | Closed By: | oehhar | |
| Closed on: | 2009-06-25 16:44:34 | |||
| Description: |
Hello,
follwing code demonstrates the issue:
% ComboBox .cb -values {a b c a b c}
.cb
% pack .cb
% .cb configure -modifycmd {puts ".cb getvalue = [.cb getvalue]"}
If now the user clicks on items of the dropped listbox, than then the ComboBox returns always the first found item index, where the contents of the ComboBox entry is identical to a listbox's item.
This would be ok, if the user entered a value!
But if the user selects a listbox item, than I expect to get the right result - the index of the selected listbox item.
Best regards,
Martin Lemburg
| |||
| User Comments: |
oehhar added on 2009-06-25 23:44:34:
Hi Martin, thank you for the report. The issue is fixed in current cvs by adding a variable holding the last set index. This also solves the issue: % .cb setvalue 5 % .cb getvalue 2 martinlemburg added on 2006-12-08 15:42:40: Logged In: YES user_id=802134 Originator: YES Sorry, thought, the category would be enough, but ... I missed the BWidget version I use. I tried this behaviour with the BWidget version 1.7 and the most current one I know 1.8. Hope this helps! Martin andreas_kupries added on 2006-12-08 01:35:40: Logged In: YES user_id=75003 Originator: NO According to the category the bwidget one. bwidget is in this project. lvirden added on 2006-12-08 01:31:44: Logged In: YES
user_id=15949
Originator: NO
To what combobox do you refer? tcllib doesn't have one, and the only thing in tklib that I see with a combobox is tablelist.
$ tclsh
% package require tablelist
4.6
% ComboBox .cb -values {a b c a b c}
invalid command "ComboBox"
%
Give us info on what version of tcl and tk and what combobox you are using.
| |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki