home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Two scrollers
- Sent: 8/14/96 8:58 AM
- Received: 8/14/96 9:11 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Dear ODF Team
- >
- >I need two adjacent views of my parts content, both scrolling. When I look in
- >Engineering Notes : Views : Scrolling I find:
- >
- >> If you need more than one scroller in your frame it means that you need more
- >> than one content view, in which case you must use embedded frames as UI
- >> elements.
- >
- >All documentation on embedded frames, however, talks in terms of embedding
- >OTHER parts (using proxies etc.) which is surely not the way to get two
- >views of
- >my
- >own data?
- >
- >So how do I create two frames with two content views?
- >
- >Graham
- >
-
- You cannot have two scrollers in the same frame. Scrolling, in ODF, uses
- the internal transform of the frame. There is only one internal transform
- per frame and as a result one scrolling direction per frame (what I mean
- is that you cannot have half on the frame scrolling up while the other
- half scrolls down). To have two scrollers you need to have three frames:
- one containing frame that behaves like a layout frame and two embedded
- frames with their own scroller. Each embedded frame will have its own
- content view. What you have to understand is that your are embedding in
- the layout frame frames of the same part. The trick is to declare the
- embedded frames a subframe of the layout frame. This way the active
- border will be displayed around the layout frame. Also OpenDoc requires a
- frame embedded in another frame of the same part to be a subframe (an
- exception will be thrown if it is not a subframe).
-
-
- ODF, right now, is not very helpful in this situation. We hope to improve
- that in the future and provide samples showing how to do that. One of the
- tool we use to test ODF API (Nautilus) is built using ODF and uses this
- technique very successfully.
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-