Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow. Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
ce4c1c6355e6568d2af1fb6e4d36d69c |
User & Date: | jan.nijtmans 2012-04-20 12:27:15 |
Context
2012-04-20
| ||
13:08 |
* generic/tkWindow.c (commands): Ensure that all descriptions of commands created by Tk are correct.check-in: 65cf98aa user: dkf tags: trunk | |
12:27 | Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow. Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there. check-in: ce4c1c63 user: jan.nijtmans tags: trunk | |
12:23 | Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow. Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there. check-in: 9fc800bf user: jan.nijtmans tags: core-8-5-branch | |
2012-04-18
| ||
18:24 | merge-mark check-in: 7c924dcf user: jan.nijtmans tags: trunk | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2012-04-13 Jan Nijtmans <[email protected]> * win/rules.vc: [Bug 3517448] TclKit build fails (unresolved __strtoi64) 2012-04-07 Jan Nijtmans <[email protected]> | > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 2012-04-20 Jan Nijtmans <[email protected]> * generic/tk.tcl: Use vroot size in stead of screen size for clipping window coordinates in ::tk::PlaceWindow. * generic/dialog.tcl: Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there. (harmless part of [Bug 533519]) 2012-04-13 Jan Nijtmans <[email protected]> * win/rules.vc: [Bug 3517448] TclKit build fails (unresolved __strtoi64) 2012-04-07 Jan Nijtmans <[email protected]> |
︙ | ︙ |
Changes to library/bgerror.tcl.
︙ | ︙ | |||
216 217 218 219 220 221 222 | bind $dlg <Return> [namespace code {Return ok 0}] bind $dlg <Escape> [namespace code {Return dismiss 1}] bind $dlg <Destroy> [namespace code {Destroy %W}] bind $dlg.function <Return> [namespace code {ReturnInDetails %W}] $dlg.function configure -command [namespace code Details] | > > | | 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | bind $dlg <Return> [namespace code {Return ok 0}] bind $dlg <Escape> [namespace code {Return dismiss 1}] bind $dlg <Destroy> [namespace code {Destroy %W}] bind $dlg.function <Return> [namespace code {ReturnInDetails %W}] $dlg.function configure -command [namespace code Details] # 6. Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the # display (Motif style) and de-iconify it. ::tk::PlaceWindow $dlg # 7. Set a grab and claim the focus too. ::tk::SetFocusGrab $dlg $dlg.ok |
︙ | ︙ |
Changes to library/choosedir.tcl.
︙ | ︙ | |||
85 86 87 88 89 90 91 | set data(filter) "*" set data(previousEntryText) "" ::tk::dialog::file::UpdateWhenIdle $w # Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the | | | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | set data(filter) "*" set data(previousEntryText) "" ::tk::dialog::file::UpdateWhenIdle $w # Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the # display (Motif style) and de-iconify it. ::tk::PlaceWindow $w widget $data(-parent) wm title $w $data(-title) # Set a grab and claim the focus too. ::tk::SetFocusGrab $w $data(ent) |
︙ | ︙ |
Changes to library/clrpick.tcl.
︙ | ︙ | |||
85 86 87 88 89 90 91 | if {[winfo viewable [winfo toplevel $data(-parent)]] } { wm transient $w $data(-parent) } # 5. Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the | | | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | if {[winfo viewable [winfo toplevel $data(-parent)]] } { wm transient $w $data(-parent) } # 5. Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the # display (Motif style) and de-iconify it. ::tk::PlaceWindow $w widget $data(-parent) wm title $w $data(-title) # 6. Set a grab and claim the focus too. ::tk::SetFocusGrab $w $data(okBtn) |
︙ | ︙ |
Changes to library/dialog.tcl.
︙ | ︙ | |||
142 143 144 145 146 147 148 | # button variable to -1; this is needed in case something happens # that destroys the window, such as its parent window being destroyed. bind $w <Destroy> {set ::tk::Priv(button) -1} # 6. Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the | | < < < < < < < < < < < < < < < < < < | | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | # button variable to -1; this is needed in case something happens # that destroys the window, such as its parent window being destroyed. bind $w <Destroy> {set ::tk::Priv(button) -1} # 6. Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the # display (Motif style) and de-iconify it. ::tk::PlaceWindow $w tkwait visibility $w # 7. Set a grab and claim the focus too. if {$default >= 0} { set focus $w.button$default } else { |
︙ | ︙ |
Changes to library/msgbox.tcl.
︙ | ︙ | |||
391 392 393 394 395 396 397 | bind $w <Escape> [list $w.$cancel invoke] # At <Destroy> the buttons have vanished, so must do this directly. bind $w.msg <Destroy> [list set tk::Priv(button) $cancel] # 7. Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the | | | 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 | bind $w <Escape> [list $w.$cancel invoke] # At <Destroy> the buttons have vanished, so must do this directly. bind $w.msg <Destroy> [list set tk::Priv(button) $cancel] # 7. Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the # display (Motif style) and de-iconify it. ::tk::PlaceWindow $w widget $data(-parent) # 8. Set a grab and claim the focus too. if {$data(-default) ne ""} { set focus $w.$data(-default) |
︙ | ︙ |
Changes to library/tk.tcl.
︙ | ︙ | |||
112 113 114 115 116 117 118 | set checkBounds 0 } if {[tk windowingsystem] eq "win32"} { # Bug 533519: win32 multiple desktops may produce negative geometry. set checkBounds 0 } if {$checkBounds} { | | | | | | | | | > | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | set checkBounds 0 } if {[tk windowingsystem] eq "win32"} { # Bug 533519: win32 multiple desktops may produce negative geometry. set checkBounds 0 } if {$checkBounds} { if {$x < [winfo vrootx $w]} { set x [winfo vrootx $w] } elseif {$x > ([winfo vrootx $w]+[winfo vrootwidth $w]-[winfo reqwidth $w])} { set x [expr {[winfo vrootx $w]+[winfo vrootwidth $w]-[winfo reqwidth $w]}] } if {$y < [winfo vrooty $w]} { set y [winfo vrooty $w] } elseif {$y > ([winfo vrooty $w]+[winfo vrootheight $w]-[winfo reqheight $w])} { set y [expr {[winfo vrooty $w]+[winfo vrootheight $w]-[winfo reqheight $w]}] } if {[tk windowingsystem] eq "aqua"} { # Avoid the native menu bar which sits on top of everything. if {$y < 22} { set y 22 } } } wm maxsize $w [winfo vrootwidth $w] [winfo vrootheight $w] wm geometry $w +$x+$y wm deiconify $w } # ::tk::SetFocusGrab -- # swap out current focus and grab temporarily (for dialogs) # Arguments: |
︙ | ︙ |
Changes to library/tkfbox.tcl.
︙ | ︙ | |||
192 193 194 195 196 197 198 | } else { set data(filter) "*" $data(typeMenuBtn) configure -state disabled -takefocus 0 $data(typeMenuLab) configure -state disabled } UpdateWhenIdle $w | | | | | 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | } else { set data(filter) "*" $data(typeMenuBtn) configure -state disabled -takefocus 0 $data(typeMenuLab) configure -state disabled } UpdateWhenIdle $w # Withdraw the window, then update all the geometry information # so we know how big it wants to be, then center the window in the # display (Motif style) and de-iconify it. ::tk::PlaceWindow $w widget $data(-parent) wm title $w $data(-title) # Set a grab and claim the focus too. ::tk::SetFocusGrab $w $data(ent) |
︙ | ︙ |