home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / TBAR2 / TOOLBAR2.NOT < prev   
Text File  |  1995-04-07  |  4KB  |  73 lines

  1. User Interface Class Library Tool Bar Sample 2
  2.  
  3. This program is an editor that demonstrates the look and feel of the
  4. IToolBar and related classes.
  5.  
  6. ToolBar Classes:
  7. ----------------
  8.  
  9. The Tool Bar function demonstrated here is built upon a number of C++
  10. classes being added to the User Interface Library.  New classes used by
  11. this sample include:
  12.  
  13.   IFlyText            - A specially drawn window to display the Fly Over Help
  14.   IFlyOverHelpHandler - A handler to move, size and display the fly text field
  15.                         and to update an option long text field(info area).
  16.   IToolBar            - A new set canvas derived class that is used to house
  17.                         controls.
  18.   IToolBarButton      - A new button class that provides drawing behaviour for
  19.                         the buttons in a tool bar.  These buttons accept text and
  20.                         a foreground bitmap.  A special ability of these objects
  21.                         is that they can draw bitmaps transparently without the
  22.                         need for for a mask bitmap like icons have.  Bitmaps used
  23.                         in these buttons must be created with one color reserved
  24.                         as the transparent color.  By default this color is pink,
  25.                         but it can be changed on a per button basis.
  26.  
  27. Sample function:
  28. ----------------
  29.  
  30. 1) Tool Bars - This sample provides three tool bars (file, edit, and font)
  31.    for the editor window.  Tool bars may contain any window (not just a
  32.    tool bar button) as demonstrated by the drop-down combo box on the
  33.    font tool bar.
  34.  
  35. 2) Tool Bar Buttons - This sample creates tool bar buttons for the tool bars.
  36.    Each button has a bitmap and text.
  37.  
  38. 3) Fly Over Help - This sample provides fly over help for the tool bars and
  39.    the windows that have been added to the tool bars.  Both the short fly
  40.    over help description and the long text descriptions (shown at the bottom
  41.    of the window) are demonstrated.
  42.  
  43. 4) Latchable Tool Bar Buttons - This sample demonstrates the latchable style
  44.    for tool bar buttons by allowing the bold, italic, and underscore buttons
  45.    to be put in a latched or down state by clicking on the button.
  46.  
  47. 5) Tool Bar Location - The Toolbars notebook (from the Options menu) can be
  48.    used to change the location of each of the tool bars.   Tool bars can have
  49.    a location of top, left, bottom, right, floating, or hidden.  Also, when
  50.    a tool bar is on the top, left, bottom, or right the group style can be
  51.    used to determine if the tool bar is displayed on a new row or column.
  52.  
  53. 6) Tool Bar Button View - The Toolbars notebook (from the Options menu) can
  54.    be used to change the view of the tool bar buttons on a tool bar.  Bitmap
  55.    text, or both bitmap and text can be displayed for a tool bar button.
  56.  
  57. 7) Tool Bar Direct Manipulation - The user can drag tool bars to new locations.
  58.    Normally, direct manipulation will make a tool bar floating, but dropping a
  59.    tool bar on the frame border or on another tool bar or tool bar frame
  60.    extension area will cause the tool bar to be non-floating.  The mouse pointer
  61.    changes to indication the new tool bar location if it will non-floating.
  62.  
  63. 8) Tool Bar Button Direct Manipulation - The user can drag tool bar buttons
  64.    within a tool bar, between tool bars, and to the system shredder.  The bold,
  65.    italic, and underscore buttons demonstrate the noDragDelete style to prevent
  66.    dragging them to the shredder.
  67.  
  68. 9) Menu Item Direct Manipulation - The File and Font menus have been enabled
  69.    for direct manipulation in this sample.  The user can drag menu items from
  70.    these menus and drop them on a tool bar to create a tool bar button for
  71.    the item.
  72.  
  73.