From: Jim I. <ji...@ap...> - 2005-04-18 20:49:32
|
Can somebody file a bug about this? I don't have time to work on Tk =20 right now, but we shouldn't lose track of this. We play some games =20 to get the scrollbar and the resize rectangle to magically line up =20 properly, and I bet we are off by a pixel somewhere in this code. =20 Shouldn't be too hard to fix... Jim On Apr 18, 2005, at 12:16 PM, Michael Kirkham wrote: > > More minimal (trimming away as much as possible to still show the =20 > effect): > > frame .top > frame .cf > scrollbar .cf.sbarright > text .cf.out > pack .cf.sbarright -side right -fill y > pack .cf.out -side right > pack .cf -fill both -side top -in .top > pack .top > > That does it for me (MacOS X 10.3.9, Tk 8.4.9). It doesn't do it =20 > if I do either of the following: > > 1. Remove the -in .top on packing .cf. (It does still do it if I =20 > remove the -in .top but change all the .cf's to .top.cf.) > > 2. Add -padx 1 to the pack .top, the pack .cf, or the =20 > pack .cf.sbarright. > > 3. Remove the -fill both on pack .cf. > > On Mon, 18 Apr 2005, Alastair Davies wrote: > > >> Date: Mon, 18 Apr 2005 19:46:29 +0100 >> From: Alastair Davies <ala...@si...> >> To: tc...@li... >> Subject: RE: [MACTCL] "pack -in" problem >> >> Here's a cut-down script that exhibits the visual shimmer of the >> originally-reported problem. When created, the right-hand side of =20= >> the >> window is continually moving left and right, together with the =20 >> right-hand >> side of the second text box. The shimmer ceases as soon as the =20 >> window is >> manually resized. >> >> I can type in either text box whilst the shimmer continues, and, =20 >> if I type >> enough carriage returns to create the scrollbars, the scroll bars =20 >> appear and >> disappear with the shimmer. >> >> This is with either core-8-4-branch or TOT, on MacOS X 10.2.8. I =20 >> must >> admit, the reason I am interested in this bug report is that I have >> experienced it myself in our application a while back, but, since =20 >> it is easy >> to work around, thought no more about it. >> >> I would be interested to know if this script reproduces the =20 >> problem on other >> machines. >> >> Kind regards, >> Alastair >> >> >> proc SetBoth {a b} { >> .cf.sbarleft set $a $b; >> .cf.sbarright set $a $b; >> } >> >> proc YViewBoth {args} { >> set ac [llength $args]; >> set a [lindex $args 0] >> set b [lindex $args 1] >> if {$ac =3D=3D 3} { >> set c [lindex $args 2] >> .cf.inp yview $a $b $c; >> .cf.out yview $a $b $c; >> } else { >> .cf.inp yview $a $b; >> .cf.out yview $a $b; >> } >> } >> >> frame .top >> frame .cf >> scrollbar .cf.sbarleft -command {YViewBoth} >> scrollbar .cf.sbarright -command {YViewBoth} >> text .cf.inp -yscrollcommand {SetBoth} \ >> -width 30 -height 10 -relief sunken -bd 2 >> text .cf.out -yscrollcommand {SetBoth} \ >> -width 30 -height 10 -relief sunken -bd 2 >> pack .cf -expand 1 -fill both >> pack .cf.sbarleft -side left -expand 0 -fill y >> pack .cf.sbarright -side right -expand 0 -fill y >> pack .cf.inp -side left -expand 1 -fill both >> pack .cf.out -side right -expand 1 -fill both >> pack .cf -side top -expand 1 -fill both -in .top >> pack .top -expand 1 -fill both >> >> >> >> -----Original Message----- >> From: Alastair Davies >> Sent: 18 April 2005 09:17 >> >> Hello Bill, Kevin, et al. >> >> I have run the script Bill posted at the start of this c.l.t =20 >> thread on my >> MacOS X 10.2.8 system (without X11), using Tcl/Tk 8.4.9, about =20 >> which I can >> make the following observations. >> >> I double-click the Wish Shell icon and use the "Source" menu =20 >> command to >> source the script: the script appears to hang, as described by Bill's >> friend. >> >> I launch the script and Wish together by typing "wish filename" in =20= >> the >> Terminal application: the script appears to run OK, after a =20 >> hiccough. When >> it first appears, the main window shimmers, as if it is constantly =20= >> re-sizing >> itself. If I manually catch hold of the re-size handle and adjust =20= >> its size >> slightly, the shimmer ceases. >> >> In the first case, it is noticeable that the main window is also =20 >> shimmering, >> but it is not possible to adjust the size manually, hence the =20 >> application >> remains hung. >> >> Running the script on Windows XP, I can see that the scrollbars =20 >> are arranged >> differently, and that some extra menu items are present. >> >> I will send these observations to mac-tcl list, in the hope of =20 >> obtaining >> further insight. >> >> If I get more time to investigate, I will look more closely at the =20= >> packing >> of the scrollbars. >> >> Best wishes, >> Alastair Davies >> >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real =20 >> users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=CCk >> _______________________________________________ >> Tcl-mac mailing list >> Tc...@li... >> https://lists.sourceforge.net/lists/listinfo/tcl-mac >> >> > > -- > Michael Kirkham > www.muonics.com |