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

Re: Using DUIM's <viewport>



In article <wkzoro98k9.fsf@double.co.nz>, Chris Double 
<chris@double.co.nz> wrote:

> "Andrew W Armstrong" <andy.armstrong@mailcity.com> writes:
> 
> > OK, here's the real version [...snip...]
> 
> I just tried your solution and it works great!
> 
> > The only problem with this solution is that the background of the
> > scrolling area is now white instead of the default Windows color.
> 
> One way I found was to use get-default-background:
> 
>     scrolling ()
>       make(<drawing-pane>,
>            children: vector(frame.%column),
>            background: get-default-background(frame.port, frame.%column),
>            foreground: #f)
>     end;
> 
> I'm not sure exactly what get-default-background does behind the
> scenes but it makes the background the default gadget background in
> this example.
> 
> Chris.

Although the get-default-background doesn't work with <win32-port> from 
HD, I'm going to use this technique with the white background.  I 
haven't dug through the source, but do you know why this works, but not 
"pane scrolling() vertically() yadda-yadda end end"?



Follow-Ups: References: