home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / SG244883.ZIP / 2_3.5 < prev    next >
Text File  |  2001-01-27  |  8KB  |  167 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/2.3.5">
  5. <title>
  6. 2.3.5 "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#2.3.5"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
  14. <img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
  15. <a href="2.3.4.1"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  16. <a href="2.4"><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="HDR4610DWW"><H3> 2.3.5   Working with Parts</H3></a>
  28. </banner>
  29. <pre width="80">
  30. <p>
  31.    The following will guide you on how to works with parts.  To start, the 
  32.    look of Document icons on the desktop look the same as today, even though 
  33.    some of them, like the Text Part icon, represent OpenDoc documents. 
  34.    <a href="#FIG4610D61">Figure 15</a> shows some of the templates and document icons of the OpenDoc 
  35.    parts. 
  36. <p>
  37. <a name="FIG4610D61"><hr>
  38.  </a>
  39. <p>
  40. <p>
  41.                                    <a href="picture-15?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P15.GIF" alt="PICTURE 15"></a>           
  42. <p>
  43. <p>
  44. <hr>
  45.  
  46.    Figure 15. OpenDoc Templates and OpenDoc Document Icons 
  47. <p>
  48.    From the user's point of view, there is no apparent distinction between an 
  49.    OpenDoc document and a regular application document.  The menus are those 
  50.    of the text part editor (because the root part, a text part, is active). 
  51.    The menu names are those you would expect when editing text, except that 
  52.    the File menu is named Document, and the Application System icon (top left 
  53.    hand corner) is a document icon rather than an application icon.  Notice 
  54.    the Templates folder (see <a href="#FIG4610D61">Figure 15</a>).  This contains the template icons 
  55.    that the user drags to the document to create documents or parts. 
  56. <p>
  57.    An OpenDoc component can have the following different states: 
  58. <p>
  59.    ░   Inactive but alive 
  60.    ░   Active 
  61.    ░   Selected 
  62. <p>
  63.    This state is indicated by the appearance (or absence) of a frame border. 
  64. <p>
  65.    An active part receives the focus for mouse and keyboard events.  It can 
  66.    update the menu bar for example to add some part specific help and to 
  67.    customize the edit menu items.  Only one part can have the focus at one 
  68.    time.  The data of this part can then be changed or updated by the user. 
  69. <p>
  70.    Now suppose the user wants to edit the content of this document's embedded 
  71.    graphics part.  The user would click inside the graphics part's frame. 
  72.    The graphics part becomes active.  (A border appears around its frame, its 
  73.    menus replace those of the text editor, and its tool palette appears.) 
  74.    The text part is now inactive.  To select the circle, the user simply 
  75.    clicks on the circle button on the tool palette.  As shown in <a href="#FIG4610D62">Figure 16</a>, a 
  76.    number of things happen:  The graphics part editor highlights the selected 
  77.    graphics object by displaying handles. 
  78. <p>
  79. <a name="FIG4610D62"><hr>
  80.  </a>
  81. <p>
  82. <p>
  83.                                    <a href="picture-16?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P16.GIF" alt="PICTURE 16"></a>           
  84. <p>
  85. <p>
  86. <hr>
  87.  
  88.    Figure 16. An Active OpenDoc Graphics Part 
  89. <p>
  90.    <B>Note:</B>  OpenDoc supports the in-out model of editing.  That means, you can 
  91.    directly edit a nested object, although it may be embedded in another part 
  92.    that is already embedded.  In OLE a part can only be activated in an 
  93.    outside in order, which means to activate an embedded part the containing 
  94.    part must be activated first. 
  95. <p>
  96.    Just as the content of a part may be activated for editing, an embedded 
  97.    part (which is content of its containing part) may itself be selected for 
  98.    certain operations.  To move or reseize a component, the component must be 
  99.    selected.  To select an embedded component, the user drags across it or, 
  100.    if the part is active, clicks its border.  The changed status is indicated 
  101.    by a different pattern of the boarder.<a href="#FIG4610D63">  Figure 17</a> shows what happens when 
  102.    the user clicks the active frame border in <a href="#FIG4610D62">Figure 16</a>.  The graphics part 
  103.    is selected and its border changes to show handles and the part that 
  104.    contains it, the text part, becomes active again. It becomes active 
  105.    because, if the graphic part is moved, the text flow of the containing 
  106.    text part may have to change also.  The menus are replaced by the text 
  107.    menus and the graphics palette goes away.  (The same thing happens to the 
  108.    menus and palette when the user selects text in the text part or clicks 
  109.    there to get an insertion point, and in all cases, content that resides in 
  110.    the text part has been selected.) 
  111. <p>
  112. <a name="FIG4610D63"><hr>
  113.  </a>
  114. <p>
  115. <p>
  116.                                    <a href="picture-17?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P17.GIF" alt="PICTURE 17"></a>           
  117. <p>
  118.    Part 
  119. <p>
  120. <hr>
  121.  
  122.    Figure 17. Resize a Selected Part 
  123. <p>
  124.    Parts viewed in frames can be active, inactive, or selected.  Parts viewed 
  125.    as icons can be only inactive or selected.  The following describes the 
  126.    three static (plural for status) of frames: 
  127. <p>
  128.    ░   A part is active when it contains the current selection or the 
  129.        insertion location (which could be a visible insertion point, as in 
  130.        text, or an unmarked default location, as when the background in a 
  131.        graphics part is clicked).  The selection may be within the part's 
  132.        intrinsic content or it may be a part embedded in the active part. 
  133.        When an embedded part becomes active, OpenDoc displays the active 
  134.        frame border, a hashed line, around the part. 
  135. <p>
  136.    ░   A part is inactive when the user is working in some other part.  When 
  137.        viewed in a frame, an inactive part has no visible frame border around 
  138.        it. 
  139. <p>
  140.        In OpenDoc several parts can be inactive but alive at the same time. 
  141.        A clock showing the time and a moving ticker tape may update their 
  142.        views concurrently. 
  143. <p>
  144.    ░   A part is selected.  The user selects a part in a frame view by 
  145.        dragging across it, or by clicking its border if it's the active part. 
  146.        The containing part is responsible for the visual appearance of a 
  147.        selected part's frame; typically, the frame shows handles, to allow 
  148.        resizing.  To select a part viewed as an icon, the user simply clicks 
  149.        the icon. 
  150. <p>
  151. <p>
  152.    In general, as soon as the user clicks inside a part's frame, that part 
  153.    becomes active.  The editor for the previously active part removes its 
  154.    menus, palettes, and other user interface elements, and the new active 
  155.    part's editor displays its user interface elements.  The active part 
  156.    receives commands and keyboard events.  Only one part at a time may be 
  157.    active within a document because, as in today's documents, there can be 
  158.    only one selection at a time. 
  159. </pre>
  160. </pre>
  161. <hr>
  162. <br><a href="2.3.4.1"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  163. <a href="2.4"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  164. <cite>  ⌐ Copyright IBM Corp. 1996</cite>
  165. <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>
  166. </BODY></HTML>
  167.