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 >
Wrap
Text File
|
2001-01-27
|
8KB
|
150 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/4.5.1">
<title>
4.5.1 "OS/2 WARP and OpenDoc"
via IBM BookManager BookServer
</title>
</head>
<body background="/bookmgr/backdrop.gif">
<banner><br>
<a href="../../library"><img src="/bookmgr/libicon2.gif" border=0 alt="[Library]"></a>
<a href="CONTENTS#4.5.1"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
<img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
<a href="4.5"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="4.5.2"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
<a href="../../search?book=EZ30OZ00"><img src="/bookmgr/search.gif" border=0 alt="[Search]" ></a>
<img src="/bookmgr/dslist.gif" border=0 alt="[Search Results]">
<img src="/bookmgr/dsprev.gif" border=0 alt="[Prev Topic Match]">
<img src="/bookmgr/dsnext.gif" border=0 alt="[Next Topic Match]">
<img src="/bookmgr/dnotes.gif" border=0 alt="[Notes]">
<img src="/bookmgr/dlnotes.gif" border=0 alt="[List Notes]">
<a href="../../print?book=EZ30OZ00"><img src="/bookmgr/print.gif" border=0 alt="[Print]"></a>
<a href="../../download/EZ30OZ00.boo"><img src="/bookmgr/download.gif" border=0 alt="[Download]" ></a>
<a href="../../help/book"><img src="/bookmgr/help.gif" border=0 alt="[Help]"></a>
<hr>
<a name="HDRS3FP"><H3> 4.5.1 The Financial Portfolio Example</H3></a>
</banner>
<pre width="80">
<p>
<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>.
We described how it would be in the future using all the different OpenDoc
components. Most of these components were not yet available when we wrote
the book and we had to improvise. The example is shown again in
<a href="#FIG4610S3Z">Figure 148</a>.
<p>
<a name="FIG4610S3Z"><hr>
</a>
<p>
<p>
<a href="picture-142?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P142.GIF" alt="PICTURE 142"></a>
<p>
<p>
<hr>
Figure 148. An OpenDoc Document Showing a Portfolio
<p>
Let us explain what you see in <a href="#FIG4610S3Z">Figure 148</a>. All the data was dragged from
a financial page on the Internet. We have the text explaining the current
markets. The chart in the top right was a chart that was on the home
page, but it could have been a chart that you could have created using a
spreadsheet or charting program. In the future we may be able to link the
chart back to the home page. At the moment it is only a static graphic.
<p>
The spreadsheet, in the lower left, could be a Spreadsheet Part in the
document that will give you the same basic functions and features that a
non-OpenDoc spreadsheet program has. As there is no spreadsheet available
for OpenDoc, we used another spreadsheet and captured a part of it as a
bitmap.
<p>
At the bottom of the document we have the ticker tape. The ticker tape
could be linked to the stock exchange and give you up to the minute and
accurate information from the stock exchange. We created a text file with
stock price data and imported it into the Ticker Tape Part.
<p>
How did we build this example with the current parts? The following are
the steps we used:
<p>
1. Drag the Page Layout template from the OpenDoc Templates folder to,
for example, the OpenDoc Shell Plug-Ins folder. (You can use the
Desktop or any folder to drag the Page Layout object.)
<p>
2. We renamed the object to Financial Portfolio; you can give it any name
you want.
<p>
3. Double-click on the object to open it.
<p>
4. You will have the Page Layout open and ready as a Root Part. To make
our work easier we clicked on the <B>Grid</B> icon to have the grid on the
canvas.
<p>
5. Drag the Text Part from the OpenDoc Templates folder to the canvas.
<p>
6. Resize the Text Part by clicking on the part to activate it. Move the
mouse to the hashed border until the mouse changes to the mouse
pointer with a star at the point. You can now select the border by
clicking once on it. The border will change to a dashed border with
black blocks on the corners. Select a black block and drag the Text
Part until it fills the page horizontally from the left to the right
margin and align it with the top margin. You don't have to worry
about the bottom part as it will expand the Text Part as soon as we
load the text into the Text Part.
<p>
7. You can now either import the text or do the layout of the graphics.
We decided to import the text first as it will be easier to decide
where the graphics need to go.
<p>
8. You can drag a text file onto the Text Part to import the text, load
it from a text file, or use cut and paste. The text part will expand
at the bottom to fit in all the text.
<p>
9. Drag either a 2D Graphics Part from the OpenDoc Templates folder or an
Image Part from the Multimedia Templates Folder. If you plan to
change the graphics we suggest you use the 2D Graphics Part. You can
only import bitmaps (.BMP files) into the 2D Graphics Part.
<p>
10. Now resize and position the Graphics Part using the same method as you
used with the Text Part. To move the whole Graphics Part you can
click with the second mouse button in the part when it is enabled to
be resized, and move it to the new position. If the Graphics Part is
within the Text Part, then you can only resize and move it within the
boundaries of the Text Part.
<p>
11. To import a picture, chart or other graphics drag and drop the
graphics file or use the cut and paste method. The chart that we used
was a bitmap that we dragged from the financial home page to the 2D
Graphics Part.
<p>
12. Unfortunately, as yet there is no Spreadsheet Part available for
OpenDoc. The spreadsheet that is in <a href="#FIG4610S3Z">Figure 148</a> is a bitmap of a
screen capture from a non-OpenDoc spreadsheet program.
<p>
13. To include the Ticker Tape Part, drag the Ticker Tape 2 Part from the
OpenDoc Templates folder to the bottom of the document.
<p>
14. Change the size and position of the Ticker Tape Part in the same way
you changed the Text and 2D Graphics Parts.
<p>
15. To change the text that is scrolling across the Ticker Tape, select
the Ticker Tape Part, press the second mouse button inside the part to
get the pop-up menu and select Open Text File. Load the text from the
new file.
<p>
16. To save the document you can either close the document or select <B>Save</B>
<B>Document</B> from the Document main menu.
<p>
<p>
This concludes the explanation of the first example. Once you get use to
how the parts work in OpenDoc it becomes very easy to use. You can reuse
this document in other documents by dragging it into a Container Part in
the other document.
</pre>
</pre>
<hr>
<br><a href="4.5"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
<a href="4.5.2"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
<cite> ⌐ Copyright IBM Corp. 1996</cite>
<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>
</BODY></HTML>