[Prev][Next][Index][Thread]

Re: Using DUIM's <viewport>



 
--

On Thu, 23 Mar 2000 07:15:02   Chris Double wrote:
>Dustin Voss <agent_@mindspring.com> writes:
>
>> Can you (or anyone) think of a way to automatically repaint this?
>> Maybe hook into some event somewhere?
>
>If you don't mind a bit of flicker when scrolling, adding the
>following method will do the trick:

Nice trick, Chris! A possibility that might work is to add a single drawing pane as the window to be scrolled, and to then add the list boxes to that.

Here's an approximate sketch, I haven't tried this (I'll try and post a real version when I'm at home, unless Chris beats me to it):

define pane <my-scroll-window> ()
  layout (frame)
    make(<column-layout>);
end pane <my-scroll-window>;

define frame <my-window> (<simple-frame>)
  ...
    scrolling ()
      make(<my-scroll-window>);
end frame <my-window>;

Then add the new list boxes to the <my-scroll-window> class.

As to the bug itself, as Chris says it is a bug in the <viewport> class that was introduced in 2.0. I was aware of it (it shows up in one of the scrolling tests in the DUIM test suite), but I didn't have time to look into it before the beta release. I would love to fix it, it is vitally important to be able to scroll gadgets in a window.

Hope this helps,

Andy



MailCity. Secure Email Anywhere, Anytime!
http://www.mailcity.lycos.com