home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / SG244883.ZIP / 4_5.1 < prev    next >
Text File  |  2001-01-27  |  8KB  |  150 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <HTML>
  3. <HEAD>
  4. <base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/4.5.1">
  5. <title>
  6. 4.5.1 "OS/2 WARP and OpenDoc" 
  7.   via IBM BookManager BookServer
  8. </title>
  9. </head>
  10. <body background="/bookmgr/backdrop.gif">
  11. <banner><br>
  12. <a href="../../library"><img src="/bookmgr/libicon2.gif" border=0 alt="[Library]"></a>
  13. <a  href="CONTENTS#4.5.1"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
  14. <img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
  15. <a href="4.5"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  16. <a href="4.5.2"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  17. <a href="../../search?book=EZ30OZ00"><img src="/bookmgr/search.gif" border=0 alt="[Search]" ></a>
  18. <img src="/bookmgr/dslist.gif" border=0 alt="[Search Results]">
  19. <img src="/bookmgr/dsprev.gif" border=0 alt="[Prev Topic Match]">
  20. <img src="/bookmgr/dsnext.gif" border=0 alt="[Next Topic Match]">
  21. <img src="/bookmgr/dnotes.gif" border=0 alt="[Notes]">
  22. <img src="/bookmgr/dlnotes.gif" border=0 alt="[List Notes]">
  23. <a  href="../../print?book=EZ30OZ00"><img src="/bookmgr/print.gif" border=0 alt="[Print]"></a>
  24. <a href="../../download/EZ30OZ00.boo"><img src="/bookmgr/download.gif" border=0 alt="[Download]" ></a>
  25. <a  href="../../help/book"><img src="/bookmgr/help.gif" border=0 alt="[Help]"></a>
  26. <hr>
  27. <a name="HDRS3FP"><H3> 4.5.1   The Financial Portfolio Example</H3></a>
  28. </banner>
  29. <pre width="80">
  30. <p>
  31.    <a href="1.1#FIG4610WPG">Figure 1 in topic 1.1</a> is discussed in <a href="1.1#HDR4610WNW">"A New Way of Working" in topic 1.1</a>. 
  32.    We described how it would be in the future using all the different OpenDoc 
  33.    components.  Most of these components were not yet available when we wrote 
  34.    the book and we had to improvise.  The example is shown again in 
  35.    <a href="#FIG4610S3Z">Figure 148</a>. 
  36. <p>
  37. <a name="FIG4610S3Z"><hr>
  38.  </a>
  39. <p>
  40. <p>
  41.                                   <a href="picture-142?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P142.GIF" alt="PICTURE 142"></a>            
  42. <p>
  43. <p>
  44. <hr>
  45.  
  46.    Figure 148. An OpenDoc Document Showing a Portfolio 
  47. <p>
  48.    Let us explain what you see in <a href="#FIG4610S3Z">Figure 148</a>.  All the data was dragged from 
  49.    a financial page on the Internet.  We have the text explaining the current 
  50.    markets.  The chart in the top right was a chart that was on the home 
  51.    page, but it could have been a chart that you could have created using a 
  52.    spreadsheet or charting program.  In the future we may be able to link the 
  53.    chart back to the home page.  At the moment it is only a static graphic. 
  54. <p>
  55.    The spreadsheet, in the lower left, could be a Spreadsheet Part in the 
  56.    document that will give you the same basic functions and features that a 
  57.    non-OpenDoc spreadsheet program has.  As there is no spreadsheet available 
  58.    for OpenDoc, we used another spreadsheet and captured a part of it as a 
  59.    bitmap. 
  60. <p>
  61.    At the bottom of the document we have the ticker tape.  The ticker tape 
  62.    could be linked to the stock exchange and give you up to the minute and 
  63.    accurate information from the stock exchange.  We created a text file with 
  64.    stock price data and imported it into the Ticker Tape Part. 
  65. <p>
  66.    How did we build this example with the current parts?  The following are 
  67.    the steps we used: 
  68. <p>
  69.    1.  Drag the Page Layout template from the OpenDoc Templates folder to, 
  70.        for example, the OpenDoc Shell Plug-Ins folder.  (You can use the 
  71.        Desktop or any folder to drag the Page Layout object.) 
  72. <p>
  73.    2.  We renamed the object to Financial Portfolio; you can give it any name 
  74.        you want. 
  75. <p>
  76.    3.  Double-click on the object to open it. 
  77. <p>
  78.    4.  You will have the Page Layout open and ready as a Root Part.  To make 
  79.        our work easier we clicked on the <B>Grid</B> icon to have the grid on the 
  80.        canvas. 
  81. <p>
  82.    5.  Drag the Text Part from the OpenDoc Templates folder to the canvas. 
  83. <p>
  84.    6.  Resize the Text Part by clicking on the part to activate it.  Move the 
  85.        mouse to the hashed border until the mouse changes to the mouse 
  86.        pointer with a star at the point.  You can now select the border by 
  87.        clicking once on it.  The border will change to a dashed border with 
  88.        black blocks on the corners.  Select a black block and drag the Text 
  89.        Part until it fills the page horizontally from the left to the right 
  90.        margin and align it with the top margin.  You don't have to worry 
  91.        about the bottom part as it will expand the Text Part as soon as we 
  92.        load the text into the Text Part. 
  93. <p>
  94.    7.  You can now either import the text or do the layout of the graphics. 
  95.        We decided to import the text first as it will be easier to decide 
  96.        where the graphics need to go. 
  97. <p>
  98.    8.  You can drag a text file onto the Text Part to import the text, load 
  99.        it from a text file, or use cut and paste.  The text part will expand 
  100.        at the bottom to fit in all the text. 
  101. <p>
  102.    9.  Drag either a 2D Graphics Part from the OpenDoc Templates folder or an 
  103.        Image Part from the Multimedia Templates Folder.  If you plan to 
  104.        change the graphics we suggest you use the 2D Graphics Part.  You can 
  105.        only import bitmaps (.BMP files) into the 2D Graphics Part. 
  106. <p>
  107.    10. Now resize and position the Graphics Part using the same method as you 
  108.        used with the Text Part.  To move the whole Graphics Part you can 
  109.        click with the second mouse button in the part when it is enabled to 
  110.        be resized, and move it to the new position.  If the Graphics Part is 
  111.        within the Text Part, then you can only resize and move it within the 
  112.        boundaries of the Text Part. 
  113. <p>
  114.    11. To import a picture, chart or other graphics drag and drop the 
  115.        graphics file or use the cut and paste method.  The chart that we used 
  116.        was a bitmap that we dragged from the financial home page to the 2D 
  117.        Graphics Part. 
  118. <p>
  119.    12. Unfortunately, as yet there is no Spreadsheet Part available for 
  120.        OpenDoc.  The spreadsheet that is in <a href="#FIG4610S3Z">Figure 148</a> is a bitmap of a 
  121.        screen capture from a non-OpenDoc spreadsheet program. 
  122. <p>
  123.    13. To include the Ticker Tape Part, drag the Ticker Tape 2 Part from the 
  124.        OpenDoc Templates folder to the bottom of the document. 
  125. <p>
  126.    14. Change the size and position of the Ticker Tape Part in the same way 
  127.        you changed the Text and 2D Graphics Parts. 
  128. <p>
  129.    15. To change the text that is scrolling across the Ticker Tape, select 
  130.        the Ticker Tape Part, press the second mouse button inside the part to 
  131.        get the pop-up menu and select Open Text File.  Load the text from the 
  132.        new file. 
  133. <p>
  134.    16. To save the document you can either close the document or select <B>Save</B> 
  135.        <B>Document</B> from the Document main menu. 
  136. <p>
  137. <p>
  138.    This concludes the explanation of the first example.  Once you get use to 
  139.    how the parts work in OpenDoc it becomes very easy to use.  You can reuse 
  140.    this document in other documents by dragging it into a Container Part in 
  141.    the other document. 
  142. </pre>
  143. </pre>
  144. <hr>
  145. <br><a href="4.5"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  146. <a href="4.5.2"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  147. <cite>  ⌐ Copyright IBM Corp. 1996</cite>
  148. <HR><p><h6><a href="/cgi-bin/bookmgr/library">IBM BookManager« BookServer</a> Copyright 1989, 1999<a href="http://www.ibm.com/"> IBM</a> Corporation.  All rights reserved.</h6><p>
  149. </BODY></HTML>
  150.