| Ticket UUID: | 1885621 | |||
| Title: | ListBox "see" fails in ScrolledWindow | |||
| Type: | Bug | Version: | None | |
| Submitter: | exgerhardr | Created on: | 2008-02-03 11:29:33 | |
| Subsystem: | bwidget | Assigned To: | damonc | |
| Priority: | 2 | Severity: | ||
| Status: | Closed | Last Modified: | 2009-07-10 09:20:35 | |
| Resolution: | Works For Me | Closed By: | sf-robot | |
| Closed on: | 2009-07-10 02:20:35 | |||
| Description: |
"ListBox see" command only works correct after "update".
Example code:
pack [set sw [ScrolledWindow .sw]]
set lb [ListBox $sw.lb]
$sw setwidget $lb
for {set i 0} {$i<30} {incr i} {
$lb insert end "Item_$i" -text "This is item $i"
}
$lb selection set Item_27
### update ; ### "see" doesn't work without "update"
$lb see Item_27
Tested on 1.8 and some older versions.
| |||
| User Comments: |
sf-robot added on 2009-07-10 09:20:35:
allow_comments - 1 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). oehhar added on 2009-06-25 22:33:31: Changed state to pending due to optional fix state oehhar added on 2009-06-10 15:51:53: Might be fixed. Workaround seams feasable. oehhar added on 2009-06-03 14:57:20: Bug confirmed, but acceptable by design. It is better when updates are coded manually than within the BWidget library. Nevertheless update is necessary to evaluate the required widget sizes. It would be possible to add a hint in the scrollwindow documentation. nobody added on 2008-02-08 21:26:01: Logged In: NO Please make it an "update idletasks" as opposed to just plain "update" -- it's safer | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki