From: Jim I. <ji...@ap...> - 2004-03-21 04:23:33
|
Okay, I fixed this. XMoveWindow and XMoveResizeWindow needed to send=20 ConfigureNotify events to the children of the window that got moved or=20= resized. I checked the fix into TOT and the 8-4 branch if you want to=20= try it out. I am pretty sure that this is correct, I noodled around a bunch in the=20= Widget demo, and with some of the BWidget samples, and this part seems=20= to work correctly. It would be good if other folks tried it as well to=20= make sure there are no unintended consequences. Jim On Mar 19, 2004, at 5:38 PM, Jim Ingham wrote: > The BWidget ScrollableFrame seems to be a canvas with a frame window=20= > item on it. If you add to your code: > > .test.sc.f configure -bg orange > .test.sc.f.frame configure -bg red > > > then scroll, you will see that it looks like the canvas and the frame=20= > are getting scrolled, but the widgets aren't getting carried along=20 > with it. Somehow, the redraw is not getting propagated down to the=20 > frame's children. Not sure why yet... > > Jim > > On Mar 19, 2004, at 11:37 AM, J=E9r=F4me Gagnon-Voyer wrote: > >> I'm on Mac OS 10.3.3 , TCL-TK 8.4.6 with BWdiget 1.70 and TKAqua >> >> package require BWidget >> proc test_scroll {} { >> toplevel .test >> ScrolledWindow .test.sc >> ScrollableFrame .test.sc.f >> .test.sc setwidget .test.sc.f >> set path [.test.sc.f getframe] >> >> for {set i 0} {$i < 20 } {incr i} { >> checkbutton $path.b$i -text "Probando probando" -variable >> prueba >> checkbutton $path.c$i -text "HOLY HOLY" -variable prueba >> pack $path.b$i -side top >> pack $path.c$i -side top >> >> } >> pack .test.sc >> } >> >> With this script, when I scroll, the content into the frame is not >> redraw. The content of the frame is not updated until I stop >> scrolling. >> Do you know how can I fix that? Linux users don't have this=20 >> problem... > -- > Jim Ingham ji...@ap... > Developer Tools > Apple Computer > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Jim Ingham =20 ji...@ap... Developer Tools - gdb |