From: Daan L. <daa...@xs...> - 2003-10-07 09:22:53
|
Hi David, > Hello. I'm unclear as to how to get a scrolledWindow to work > properly with sizers. In the following example, I don't get a scrollbar, Well, I am not a wxWindows expert either. However, I think that you always have to set the "virtualSize" of a scrolled window to get the sizer working. In your example, you set the "scrollRate", but forget to set the "virtualSize". Maybe that is the cause of the problems? Hope this helps, Daan. > and can't seem > to figure out how to make the size of the ScrolledWindow be > smaller than > the size of its contents: > > main = start $ do f<- frame [text := "Test"] > scrolled <- scrolledWindow f > [layout := column 0 $ take 47 labels, > scrollRate := size 10 10] > quit <- button f [text := "Quit", on > command := close f] > set f [layout := column 5 [fill $ widget scrolled, > centre $ widget quit] > > labels = map (floatLeft . label . ("Label "++) . show) [1..] > > I've essentially been trying things at random, but have no > real idea as to > how to make this work right. > -- > David Roundy > http://www.abridgegame.org/darcs > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > |