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

Re: Using DUIM's <viewport>



I don't quite understand what you are after, but I can explain a bit
more about this part of DUIM.  The <viewport> object really just
serves to provide a clipping region and a translation transform
that allows the underlying sheet to show through at the correct
position.  These get wrapped up in a "scroller", which lays out
the viewport, the scroll bars, and the scrolled child[ren].

I think where you should start is by wrapping the 'scrolling' macro
around the sheet(s) you want to scroll.  DUIM does the rest.

There is a hack in the DUIM demos that does various kinds of
scrolling.

If this isn't enough to get you further, please trying explaining
what you want a bit less tersely, and I'll have another go.

Dustin Voss wrote in message ...
>I'm writing a utility at work, and I wanted to create a NeXT-style
>browser view.  For those who don't know, it will look like this:
>
>+-----------------------------------------+
>|   root         line 3                   |
>| +----------+ +-------------+            |
>| | line 1   | | sub-item 1  |            |
>| | line 2   | | sub-item 2  |            |
>| |#line#3###| |             |            |
>| | line 4   | |             |            |
>| | line 5   | |             |            |
>| +----------+ +-------------+            |
>|                                         |
>|<::::::::::::::::##:::::::::::::::::::::>|
>+-----------------------------------------+
>
>I figured I'd use a <viewport> with a child <row-layout> and add
>labelled <list-controls>.  But when I run the app, the area where the
>viewport should show up is blank.
>
>It's entirely possible that I am misusing that class.  It's not
>well-documented.  Has anyone used this?  Any sample code?





References: