Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | scrollframe.tcl: Eric advised to check for unmapped window, as the <Map> event may be executed in the unmapped state. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | bwidget |
Files: | files | file ages | folders |
SHA1: |
6d0524a1f8e7bb21f6c37bc29459bdf5 |
User & Date: | oehhar 2016-11-02 23:56:53.461 |
References
2016-11-03
| ||
00:02 | • Ticket [72a5727d1b] ScrollableFrame changes width upon unmap and map events status still Closed with 5 other changes artifact: 89f65e277d user: oehhar | |
Context
2017-05-08
| ||
18:21 | MessageDlg.html: Documented the use of the native widget for "MessageDlg -type !user" and the limited set of recognized options. Ticket [8edade3cea] by Gerhard Reithofer check-in: 66e9c7802d user: oehhar tags: bwidget | |
2017-01-12
| ||
14:39 | Display ScrolledWindow scrollbars only if mouse is in the widget. Tciket [d5480d1da2] by Alexandru check-in: 246eaca515 user: oehhar tags: rfe-d5480d1da2 | |
2016-11-02
| ||
23:56 | scrollframe.tcl: Eric advised to check for unmapped window, as the <Map> event may be executed in the unmapped state. check-in: 6d0524a1f8 user: oehhar tags: bwidget | |
2016-10-31
| ||
17:53 | Remove the whole <Unmap> binding, as it does not do any thing any more check-in: cb6716528c user: oehhar tags: bwidget | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2016-10-31 Harald Oehlmann scrollframe.tcl: width changed when unmapped and mapped. Checkge the Configure vound proc to not be active when currently unmapped. Ticket [72a5727d1b]. Thanks to Alexandru for the ticket and patch. 2016-10-31 Harald Oehlmann | > > > > | 1 2 3 4 5 6 7 8 9 10 11 | 2016-10-31 Harald Oehlmann scrollframe.tcl: Eric advised to check for unmapped window, as the <Map> event may be executed in the unmapped state. 2016-10-31 Harald Oehlmann scrollframe.tcl: width changed when unmapped and mapped. Checkge the Configure vound proc to not be active when currently unmapped. Ticket [72a5727d1b]. Thanks to Alexandru for the ticket and patch. 2016-10-31 Harald Oehlmann |
︙ | ︙ |
Changes to scrollframe.tcl.
︙ | ︙ | |||
244 245 246 247 248 249 250 | # Command ScrollableFrame::_frameConfigure # ---------------------------------------------------------------------------- proc ScrollableFrame::_max {a b} {return [expr {$a <= $b ? $b : $a}]} proc ScrollableFrame::_frameConfigure {canvas} { # This ensures that we don't get funny scrollability in the frame # when it is smaller than the canvas space # use [winfo] to get height & width of frame | | | 244 245 246 247 248 249 250 251 252 253 254 255 256 | # Command ScrollableFrame::_frameConfigure # ---------------------------------------------------------------------------- proc ScrollableFrame::_max {a b} {return [expr {$a <= $b ? $b : $a}]} proc ScrollableFrame::_frameConfigure {canvas} { # This ensures that we don't get funny scrollability in the frame # when it is smaller than the canvas space # use [winfo] to get height & width of frame if {![winfo ismapped $canvas.frame]} { return } set height [_max [winfo height $canvas.frame] [winfo height $canvas]] set width [_max [winfo width $canvas.frame] [winfo width $canvas]] $canvas:cmd configure -scrollregion [list 0 0 $width $height] } |