From: Morbus I. <mo...@di...> - 2001-05-01 13:21:09
|
Ok. This is intensely interesting. I'm sure I'm doing something wrong. I've attached the latest Windows.pl file, which is where I'm trying to accomplish this autoscroll thing. You'll have to activate it something like: &gui_init, for (1 .. 40) { &gui_note("hey!"); to get it going. It's a gui layer library to a much larger application. Anyways, a couple of notes: - I added a "height" to my Richie, and thinking that the Resize wasn't needed, commented it out. To my surprise, that stopped the vscrollbar from appearing. Even with all the other junk you see in there, the vscroll doesn't appear. Only when I uncomment the Resize (as in this file) does the vscroll appear. - As mentioned in a previous note, Johan's thingy doesn't work the way I want it... As it is now, the Windows.pl does the same thing as Johan's code. I want it to auto scroll to the *last printed line*, whilst still showing all the previous lines above it. The *last printed line* should be the *last visible line in the window*. Johan's way doesn't autoscroll. >$Main->Rich->SendMessage (0x115, 7, 0) This caused the window to put the *last printed line* in the first *visible line of the window*. That's not what I want. >$Main->Rich->SendMessage (0x115, 0, 0); This, although sounding promising, didn't work either. Heelpppp! <g>... |