home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re Two scrollers < prev    next >
Encoding:
Internet Message Format  |  1996-08-14  |  2.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Two scrollers
  2. Sent:        8/14/96 8:58 AM
  3. Received:    8/14/96 9:11 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Dear ODF Team
  9. >
  10. >I need two adjacent views of my parts content, both scrolling. When I look in
  11. >Engineering Notes : Views : Scrolling I find:
  12. >
  13. >> If you need more than one scroller in your frame it means that you need more
  14. >> than one content view, in which case you must use embedded frames as UI
  15. >> elements.
  16. >
  17. >All documentation on embedded frames, however, talks in terms of embedding
  18. >OTHER parts (using proxies etc.) which is surely not the way to get two 
  19. >views of
  20. >my
  21. >own data?
  22. >
  23. >So how do I create two frames with two content views?
  24. >
  25. >Graham
  26. >
  27.  
  28. You cannot have two scrollers in the same frame. Scrolling, in ODF, uses 
  29. the internal transform of the frame. There is only one internal transform 
  30. per frame and as a result one scrolling direction per frame (what I mean 
  31. is that you cannot have half on the frame scrolling up while the other 
  32. half scrolls down). To have two scrollers you need to have three frames: 
  33. one containing frame that behaves like a layout frame and two embedded 
  34. frames with their own scroller. Each embedded frame will have its own 
  35. content view. What you have to understand is that your are embedding in 
  36. the layout frame frames of the same part. The trick is to declare the 
  37. embedded frames a subframe of the layout frame. This way the active 
  38. border will be displayed around the layout frame. Also OpenDoc requires a 
  39. frame embedded in another frame of the same part to be a subframe (an 
  40. exception will be thrown if it is not a subframe).
  41.  
  42.  
  43. ODF, right now, is not very helpful in this situation. We hope to improve 
  44. that in the future and provide samples showing how to do that. One of the 
  45. tool we use to test ODF API (Nautilus) is built using ODF and uses this 
  46. technique very successfully.
  47.  
  48. ........................................................................
  49.  Henri Lamiraux                                      lamiraux@apple.com
  50.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  51. ........................................................................
  52.  
  53.  
  54.