home *** CD-ROM | disk | FTP | other *** search
/ Dream 41 / Amiga_Dream_41.iso / Amiga / Programmation / gui / tri20b1dev.lha / Triton / Developer / Autodocs / triton.doc
Encoding:
Text File  |  1996-10-14  |  47.8 KB  |  1,594 lines

  1. TABLE OF CONTENTS
  2.  
  3. triton.lib/TR_CloseTriton
  4. triton.lib/TR_OpenTriton
  5. triton.library/class_Button
  6. triton.library/class_CheckBox
  7. triton.library/class_Cycle
  8. triton.library/class_DisplayObject
  9. triton.library/class_DropBox
  10. triton.library/class_FrameBox
  11. triton.library/class_Group
  12. triton.library/class_Image
  13. triton.library/class_Line
  14. triton.library/class_Listview
  15. triton.library/class_Object
  16. triton.library/class_Palette
  17. triton.library/class_Progress
  18. triton.library/class_Scroller
  19. triton.library/class_Slider
  20. triton.library/class_Space
  21. triton.library/class_String
  22. triton.library/class_Text
  23. triton.library/TR_AutoRequest
  24. triton.library/TR_CloseProject
  25. triton.library/TR_CloseWindowSafely
  26. triton.library/TR_CreateApp
  27. triton.library/TR_DeleteApp
  28. triton.library/TR_DoMethod
  29. triton.library/TR_DoMethodClass
  30. triton.library/TR_DrawFrame
  31. triton.library/TR_EasyRequest
  32. triton.library/TR_FirstOccurance
  33. triton.library/TR_FrameBorderHeight
  34. triton.library/TR_FrameBorderWidth
  35. triton.library/TR_GetAttribute
  36. triton.library/TR_GetErrorString
  37. triton.library/TR_GetLastError
  38. triton.library/TR_GetMsg
  39. triton.library/TR_GetPen
  40. triton.library/TR_LockProject
  41. triton.library/TR_LockScreen
  42. triton.library/TR_NumOccurances
  43. triton.library/TR_ObtainWindow
  44. triton.library/TR_OpenProject
  45. triton.library/TR_PrintText
  46. triton.library/TR_ReleaseWindow
  47. triton.library/TR_ReplyMsg
  48. triton.library/TR_SendMessage
  49. triton.library/TR_SetAttribute
  50. triton.library/TR_TextHeight
  51. triton.library/TR_TextWidth
  52. triton.library/TR_UnlockProject
  53. triton.library/TR_UnlockScreen
  54. triton.library/TR_Wait
  55. triton.lib/TR_CloseTriton                           triton.lib/TR_CloseTriton
  56.  
  57.    NAME    
  58.     TR_CloseTriton -- Closes Triton easily.
  59.  
  60.    SYNOPSIS
  61.     TR_CloseTriton()
  62.  
  63.     VOID TR_CloseTriton(VOID);
  64.  
  65.    FUNCTION
  66.     Closes the application created by OpenTriton()
  67.     and closes triton.library.
  68.  
  69.    SEE ALSO
  70.     TR_OpenTriton()
  71.  
  72. triton.lib/TR_OpenTriton                             triton.lib/TR_OpenTriton
  73.  
  74.    NAME    
  75.     TR_OpenTriton -- Opens Triton ready to use.
  76.  
  77.    SYNOPSIS
  78.     success = TR_OpenTriton(version, tag1,...)
  79.     D0
  80.  
  81.     BOOL TR_OpenTriton(ULONG, ULONG,...);
  82.  
  83.    FUNCTION
  84.     Opens triton.library with the specified minimum
  85.     version and creates an application.
  86.     The supplied tags are passed as a taglist to
  87.     TR_CreateApp().
  88.  
  89.    RESULT
  90.     success - Was everything opened successful?
  91.  
  92.    SEE ALSO
  93.     TR_CloseTriton(), TR_CreateApp()
  94.  
  95. triton.library/class_Button                       triton.library/class_Button
  96.  
  97.    NAME    
  98.     class_Button -- A BOOPSI button gadget
  99.  
  100.    SUPERCLASS
  101.     class_DisplayObject
  102.  
  103.    SYNOPSIS
  104.     TROB_Button
  105.  
  106.    ATTRIBUTES
  107.     <Default>        : ULONG buttontype
  108.                        - TRBT_TEXT         : Text button (default)
  109.                        - TRBT_GETFILE      : GetFile image button
  110.                        - TRBT_GETDRAWER    : GetDrawer image button
  111.                        - TRBT_GETENTRY     : GetEntry image button
  112.                        [create]
  113.     TRAT_Text        : STRPTR label
  114.                        [create]
  115.     TRAT_Flags       : ULONG flags
  116.                        - TRBU_RETURNOK     : Activated by <Return>
  117.                        - TRBU_ESCOK        : Activated by <Esc>
  118.                        - TRBU_SHIFTED      : Shifted shortcut only
  119.                        - TRBU_UNSHIFTED    : Unshifted shortcut only
  120.                        - TRBU_YRESIZE (V2) : When this flag is set, the
  121.                                              button will be vertically
  122.                                              resizeable. This is required
  123.                                              because beginning with V2
  124.                                              the height of objects which
  125.                                              are normally using the
  126.                                              button height can be
  127.                                              modified in the prefs
  128.                                              editor. Set this flags
  129.                                              WHEREVER POSSIBLE in order
  130.                                              to make buttons adopt to
  131.                                              taller objects in the same
  132.                                              horizontal group.
  133.                        [create]
  134.  
  135.    APPLICATION MESSAGES
  136.     TRMS_ACTION is sent when a pressed down button is released.
  137.  
  138.    NOTES
  139.     Although image buttons don't display a text string you can
  140.     still set one using the TRAT_Text attribute in order to create
  141.     a shortcut for the button.
  142.  
  143. triton.library/class_CheckBox                   triton.library/class_CheckBox
  144.  
  145.    NAME    
  146.     class_CheckBox -- A GadTools checkbox gadget
  147.  
  148.    SUPERCLASS
  149.     class_DisplayObject
  150.  
  151.    SYNOPSIS
  152.     TROB_CheckBox
  153.  
  154.    ATTRIBUTES
  155.     <Default>        : <unused>
  156.     TRAT_Value       : BOOL checked
  157.                        [create, set, get]
  158.  
  159.    APPLICATION MESSAGES
  160.     TRMS_NEWVALUE is sent when the checkbox has been toggled. trm_Data
  161.     contains 0 for an unselected checkbox and any other value for a
  162.     selected checkbox.
  163.  
  164. triton.library/class_Cycle                         triton.library/class_Cycle
  165.  
  166.    NAME    
  167.     class_Cycle -- A GadTools cycle gadget
  168.  
  169.    SUPERCLASS
  170.     class_DisplayObject
  171.  
  172.    SYNOPSIS
  173.     TROB_Cycle
  174.  
  175.    ATTRIBUTES
  176.     <Default>        : STRPTR *entries    : Gadget etry labels
  177.                        [create]
  178.     TRAT_Value       : ULONG number
  179.                        [create, set, get]
  180.     TRAT_Flags       : ULONG flags (V2)
  181.                        - TRCY_MX          : "Unfold" the cycle gadget to
  182.                                             a mutually exclusive gadget.
  183.                        - TRCY_RIGHTLABELS : Put the labels to the right
  184.                                             side (TRCY_MX only).
  185.                        [create]
  186.  
  187.    NOTES
  188.     Disabling TRCY_MX-style gadgets requires OS3.0 or better.
  189.  
  190.    APPLICATION MESSAGES
  191.     TRMS_NEWVALUE is sent when the selected entry has changed.
  192.     trm_Data contains the ordinal number of the new entry.
  193.  
  194. triton.library/class_DisplayObject         triton.library/class_DisplayObject
  195.  
  196.    NAME    
  197.     class_DisplayObject -- An abstract display object
  198.  
  199.    SUPERCLASS
  200.     class_Object
  201.  
  202.    SYNOPSIS
  203.     (TROB_DisplayObject)
  204.  
  205.    ATTRIBUTES
  206.     <Default>              : <unused>
  207.     TRAT_ID                : ULONG objectid
  208.                              [create, get]
  209.     TRAT_Disabled          : BOOL disabled
  210.                              [create, set, get]
  211.     TRDO_QuickHelpString   : STRPTR string
  212.                              [create, set, get]
  213.  
  214.    OBJECT MESSAGES
  215.     TROM_INSTALL           : Install an object at its place in a rastport
  216.     TROM_REMOVE            : Remove an installed object
  217.     TROM_SETATTRIBUTE      : Modify an attribute
  218.     TROM_GETATTRIBUTE      : Query an attribute
  219.     TROM_HIT               : Find an object from a pair of coordinates
  220.     (TROM_REFRESH)         : Refresh/redraw an object's on-screen
  221.                              representation
  222.     (TROM_EVENT)           : An IDCMP event has arrived
  223.     (TROM_DISABLED)        : Disable/ghost an object
  224.     (TROM_ENABLED)         : Enable an object again
  225.     (TROM_KEYDOWN)         : A key has been pressed down
  226.     (TROM_REPEATEDKEYDOWN) : A key is still pressed down
  227.     (TROM_KEYUP)           : A key has been released
  228.     (TROM_CANCELLED)       : A key press has been cancelled
  229.     (TROM_CREATECLASS)     : Create class-specific data
  230.     (TROM_DISPOSECLASS)    : Dispose of class-specific data
  231.  
  232. triton.library/class_DropBox                     triton.library/class_DropBox
  233.  
  234.    NAME    
  235.     class_DropBox -- An icon drop box
  236.  
  237.    SUPERCLASS
  238.     class_DisplayObject
  239.  
  240.    SYNOPSIS
  241.     TROB_DropBox
  242.  
  243.    ATTRIBUTES
  244.     <Default>        : <unused>
  245.  
  246. triton.library/class_FrameBox                   triton.library/class_FrameBox
  247.  
  248.    NAME    
  249.     class_FrameBox -- A framing box
  250.  
  251.    SUPERCLASS
  252.     class_DisplayObject (no attributes inherited)
  253.  
  254.    SYNOPSIS
  255.     TROB_FrameBox
  256.  
  257.    ATTRIBUTES
  258.     <Default>        : ULONG boxtype (V2)
  259.                          If no flag is set, unnamed boxes will
  260.                          be grouping and named ones framing.
  261.                        - TRFB_TEXT       : A text container
  262.                        - TRFB_GROUPING   : A grouping box
  263.                        - TRFB_FRAMING    : A framing box.
  264.                        [create]
  265.     TRAT_ID          : ULONG objectid (V2)
  266.                        [create]
  267.     TRAT_Backfill    : ULONG pattern
  268.                        [create, set]
  269.     TRAT_Text        : STRPTR label (V2)
  270.                        [create]
  271.     <other>          : <Child object>
  272.                        [create]
  273.  
  274. triton.library/class_Group                         triton.library/class_Group
  275.  
  276.    NAME    
  277.     class_Group -- A grouping object
  278.  
  279.    SUPERCLASS
  280.     class_DisplayObject
  281.  
  282.    SYNOPSIS
  283.     TRGR_Horiz
  284.     TRGR_Vert
  285.  
  286.    ATTRIBUTES
  287.     <Default>        : ULONG flags
  288.                        - TRGR_PROPSHARE  : Divide objects
  289.                                            proportionally
  290.                        - TRGR_EQUALSHARE : Divide objects equally
  291.                        - TRGR_PROPSPACES : Divide spaces
  292.                                            proportionally
  293.                        - TRGR_ARRAY      : Top group of an array. Lines
  294.                                            or culumns can be built
  295.                                            using TRGR_PROPSHARE groups.
  296.                                            At least one group must
  297.                                            be contained in an array.
  298.                        - TRGR_ALIGN      : Align resizable objects in
  299.                                            their secondary dimension
  300.                        - TRGR_CENTER     : Center non-resizable
  301.                                            objects in their secondary
  302.                                            dimension
  303.                        - TRGR_FIXHORIZ   : Don't allow horizontal
  304.                                            resizing
  305.                        - TRGR_FIXVERT    : Don't allow vertical
  306.                                            resizing
  307.                        - TRGR_INDEP (V2) : Group is independent of
  308.                                            surrounding array
  309.                        [create]
  310.     TRAT_ID          : ULONG objectid (V4)
  311.                        [create]
  312.     <other>          : Treated as elements of the group
  313.                        [create]
  314.     TRGR_End         : <unused> : Marks the end of the group
  315.                        [create]
  316.  
  317.    NOTES
  318.     An array group must contain at least one non-space object.
  319.  
  320. triton.library/class_Image                         triton.library/class_Image
  321.  
  322.    NAME    
  323.     class_Image -- An image (V2)
  324.  
  325.    SUPERCLASS
  326.     class_DisplayObject
  327.  
  328.    SYNOPSIS
  329.     TROB_Image
  330.  
  331.    ATTRIBUTES
  332.     <Default>        : <Image>
  333.                        [create]
  334.     TRAT_Flags       : ULONG flags
  335.                        - TRIM_BOOPSI : <Default> is a pointer to a
  336.                                        struct IClass BOOPSI image class.
  337.                        [create]
  338.     TRAT_MinWidth    : Minimum image width in pixels. Defaults to
  339.                        the image button height.
  340.                        [create, set]
  341.     TRAT_MinHeight   : Minimum image height in pixels. Defaults to
  342.                        the image button height.
  343.                        [create, set]
  344.  
  345. triton.library/class_Line                           triton.library/class_Line
  346.  
  347.    NAME    
  348.     class_Line -- A 3D line
  349.  
  350.    SUPERCLASS
  351.     class_DisplayObject
  352.  
  353.    SYNOPSIS
  354.     TROB_Line
  355.  
  356.    ATTRIBUTES
  357.     <Default>        : ULONG flags
  358.                        - TROF_HORIZ        : Horizontal line
  359.                                              (Overrides group dimension)
  360.                        - TROF_VERT         : Vertical line
  361.                                              (Overrides group dimension)
  362.                        - TROF_RAISED       : Raised line
  363.                        [create]
  364.  
  365. triton.library/class_Listview                   triton.library/class_Listview
  366.  
  367.    NAME
  368.     class_Listview -- A GadTools Listview gadget
  369.  
  370.    SUPERCLASS
  371.     class_DisplayObject
  372.  
  373.    SYNOPSIS
  374.     TROB_Listview
  375.  
  376.    ATTRIBUTES
  377.     <Default>        : struct List *entries
  378.                        [create, set]
  379.     TRAT_Flags       : ULONG flags
  380.                        - Listview type (mutually exclusive):
  381.                          - TRLV_READONLY     : A read-only list
  382.                          - TRLV_SELECT       : You may select an entry
  383.                          - TRLV_SHOWSELECTED : Show selected entry
  384.                        - TRLV_NOCURSORKEYS   : Don't use arrow keys
  385.                        - TRLV_NONUMPADKEYS   : Don't use keypad keys
  386.                        - TRLV_FWFONT         : Use the fixed-width font
  387.                        - TRLV_NOGAP (V2)     : Leave no gap below the
  388.                                                list but instead at the
  389.                                                end of the group.
  390.                        [create, set]
  391.     TRAT_Value       : ULONG selected        : Currently selected entry
  392.                                                (TRLV_SHOWSELECTED only)
  393.                        [create, set, get]
  394.     TRLV_Top         : ULONG top
  395.                        [create, set]
  396.     TRAT_MinWidth    : ULONG minwidth        : Minimum width
  397.                                                (Default: 10 characters)
  398.                        [create, set]
  399.     TRAT_MinHeight   : ULONG minheight       : Minimum height
  400.                                                (Default: 4 lines)
  401.                        [create, set]
  402.  
  403.    APPLICATION MESSAGES
  404.     'Select' listviews send TRMS_ACTION messages. 'ShowSelected' lists
  405.     send TRMS_NEWVALUE messages. trm_Data contains the ordinal number
  406.     of the selected entry. trm_Qualifier&IEQUALIFIER_REPEAT is set if
  407.     the user has double-clicked the specified listview entry.
  408.  
  409. triton.library/class_Object                       triton.library/class_Object
  410.  
  411.    NAME    
  412.     class_Object -- The abstract root class
  413.  
  414.    SUPERCLASS
  415.     <none>
  416.  
  417.    SYNOPSIS
  418.     (TROB_Object)
  419.  
  420.    ATTRIBUTES
  421.     <Default>        : <unused>
  422.  
  423.    OBJECT MESSAGES
  424.     TROM_NEW         : Create an instance
  425.     TROM_DISPOSE     : Dispose of an instance
  426.  
  427. triton.library/class_Palette                     triton.library/class_Palette
  428.  
  429.    NAME    
  430.     class_Palette -- A GadTools palette gadget
  431.  
  432.    SUPERCLASS
  433.     class_DisplayObject
  434.  
  435.    SYNOPSIS
  436.     TROB_Palette
  437.  
  438.    ATTRIBUTES
  439.     <Default>        : <unused>
  440.     TRAT_Value       : BOOL checked
  441.                        [create, set, get]
  442.  
  443.    APPLICATION MESSAGES
  444.     TRMS_NEWVALUE is sent when a new color has been selected. trm_Data
  445.     contains the pen number of the selected color.
  446.  
  447. triton.library/class_Progress                   triton.library/class_Progress
  448.  
  449.    NAME    
  450.     class_Progress -- A progress indicator
  451.  
  452.    SUPERCLASS
  453.     class_DisplayObject
  454.  
  455.    SYNOPSIS
  456.     TROB_Progress
  457.  
  458.    ATTRIBUTES
  459.     <Default>        : ULONG maximum
  460.                        [create, set]
  461.     TRAT_Flags       : ULONG orientation
  462.                        - TROF_HORIZ (default)
  463.                        - TROF_VERT
  464.                        [create, set]
  465.     TRAT_Value       : ULONG current
  466.                        [create, set, get]
  467.  
  468. triton.library/class_Scroller                   triton.library/class_Scroller
  469.  
  470.    NAME    
  471.     class_Scroller -- A GadTools scroller gadget
  472.  
  473.    SUPERCLASS
  474.     class_DisplayObject
  475.  
  476.    SYNOPSIS
  477.     TROB_Scroller
  478.  
  479.    ATTRIBUTES
  480.     <Default>        : ULONG flags
  481.                        - TROF_HORIZ (default)
  482.                        - TROF_VERT
  483.                        [create]
  484.     TRAT_Value       : WORD top
  485.                        [create, set, get]
  486.     TRSC_Total       : WORD total
  487.                        [create, set, get]
  488.     TRSC_Visible     : WORD visible
  489.                        [create, set, get]
  490.  
  491.    APPLICATION MESSAGES
  492.     TRMS_NEWVALUE is sent when TRAT_Value changes. trm_Data contains
  493.     the new value.
  494.  
  495. triton.library/class_Slider                       triton.library/class_Slider
  496.  
  497.    NAME    
  498.     class_Slider -- A GadTools slider gadget
  499.  
  500.    SUPERCLASS
  501.     class_DisplayObject
  502.  
  503.    SYNOPSIS
  504.     TROB_Slider
  505.  
  506.    ATTRIBUTES
  507.     <Default>        : ULONG flags
  508.                        - TROF_HORIZ (default)
  509.                        - TROF_VERT
  510.                        [create]
  511.     TRAT_Value       : WORD level
  512.                        [create, set, get]
  513.     TRSL_Min         : WORD min
  514.                        [create]
  515.     TRSL_Max         : WORD max
  516.                        [create]
  517.  
  518.    APPLICATION MESSAGES
  519.     TRMS_NEWVALUE is sent when TRAT_Value changes. trm_Data contains
  520.     the new value.
  521.  
  522. triton.library/class_Space                         triton.library/class_Space
  523.  
  524.    NAME    
  525.     class_Space -- A class of spaces with various sizes
  526.  
  527.    SUPERCLASS
  528.     class_DisplayObject
  529.  
  530.    SYNOPSIS
  531.     TROB_Space
  532.  
  533.    ATTRIBUTES
  534.     <Default>        : ULONG spacetype
  535.                        - TRST_NONE         : No space
  536.                        - TRST_SMALL        : Small space
  537.                        - TRST_NORMAL       : Normal space (default)
  538.                        - TRST_BIG          : Big space
  539.                        [create]
  540.  
  541. triton.library/class_String                       triton.library/class_String
  542.  
  543.    NAME    
  544.     class_String -- A GadTools string gadget
  545.  
  546.    SUPERCLASS
  547.     class_DisplayObject
  548.  
  549.    SYNOPSIS
  550.     TROB_String
  551.  
  552.    ATTRIBUTES
  553.     <Default>        : STRPTR string
  554.                        [create, set, get]
  555.     TRAT_Value       : UWORD maxchars (default: 64)
  556.                        [create]
  557.     TRST_Filter      : STRPTR filter: Only characters in this string will
  558.                        be accepted if present, otherwise all characters
  559.                        are allowed.
  560.                        [create]
  561.     TRAT_Flags       : ULONG flags
  562.                        - TRST_INVISIBLE         : Invisible typing
  563.                        - TRST_NORETURNBROADCAST : Don't broadcast <Return>
  564.                                                   key presses to the window.
  565.                        - TRST_FLOAT             : Only one "." or "," symbol
  566.                                                   is accepted.
  567.                        [create]
  568.  
  569.    APPLICATION MESSAGES
  570.     TRMS_NEWVALUE is sent when <Return> has been pressed in an activated
  571.     string gadget. trm_Data contains a pointer to the new string and is
  572.     only valid as long as the object exists. It is advised that you do not
  573.     check for TRMS_NEWVALUE messages but instead read the current string
  574.     using TR_GetAttribute() when you need it.
  575.  
  576.    OBJECT MESSAGES
  577.     TROM_ACTIVATE    : Activate the string gadget.
  578.  
  579. triton.library/class_Text                           triton.library/class_Text
  580.  
  581.    NAME    
  582.     class_Text -- A line of text / A value
  583.  
  584.    SUPERCLASS
  585.     class_DisplayObject
  586.  
  587.    SYNOPSIS
  588.     TROB_Text
  589.  
  590.    ATTRIBUTES
  591.     <Default>        : <unused>
  592.     TRAT_Text        : STRPTR text
  593.                        [create, set]
  594.     TRAT_Value       : ULONG number
  595.                        [create, set]
  596.     TRAT_MinWidth    : ULONG number_of_average_chars
  597.                        [create]
  598.     TRAT_Flags       : ULONG flags
  599.                        - TRTX_NOUNDERSCORE    : Don't interpret underscores
  600.                        - TRTX_HIGHLIGHT       : Highlight text
  601.                        - TRTX_3D              : Highlight with shadows
  602.                        - TRTX_BOLD            : Bold text
  603.                        - TRTX_TITLE           : Use this for titles (e.g.
  604.                                                 of separator bars).
  605.                        - TRTX_RIGHTALIGN (V6) : Align text to the right border
  606.                        - TRTX_CENTER (V6)     : Center text
  607.                        - TRTX_CLIPPED (V4)    : Text is resizable in X
  608.                                                 direction. Text which
  609.                                                 exceeds the available
  610.                                                 space will be truncated.
  611.                        - TRTX_MULTILINE (V6)  : See TR_PrintText() autodoc
  612.                                                 clip for details
  613.                        [create]
  614.  
  615.    NOTES
  616.     TRTX_CLIPPED is mutually exclusive with TRTX_MULTILINE and TRTX_RIGHTALIGN.
  617.     Non-clipped texts (and especially multi-line texts) should not be changed.
  618.     Clipping is not possible when TRAT_MinWidth is specified.
  619.  
  620.    SEE ALSO
  621.     TR_PrintText()
  622.  
  623. triton.library/TR_AutoRequest                   triton.library/TR_AutoRequest
  624.  
  625.    NAME    
  626.     TR_AutoRequest -- A (relatively ;-) low-level requester function.
  627.  
  628.    SYNOPSIS
  629.     selection = TR_AutoRequest(App, Project, TagList)
  630.     D0                         A1   A0       A2
  631.  
  632.     ULONG TR_AutoRequest(struct TR_App *, struct TR_Project *,
  633.                          struct AppItem *);
  634.  
  635.     selection = TR_AutoRequestTags(App, Project, Tag,...)
  636.     D0
  637.  
  638.     ULONG TR_AutoRequestTags(struct TR_App *, struct TR_Project *,
  639.                          struct AppItem *);
  640.  
  641.    FUNCTION
  642.     Pops up a requester which is described by the supplied tag list.
  643.     As soon as a TRMS_ACTION message is sent by one of the objects,
  644.     the requester will close. If a project is supplied, it will be
  645.     locked when opening the requester and unlocked when closing it.
  646.  
  647.    RESULT
  648.     selection - The ID of the object which triggered the action,
  649.                 0 for an error, (ULONG)(-1) for the close gadget.
  650.  
  651.    NOTES
  652.     Simple requesters with just text and buttons can be done easier
  653.     with TR_EasyRequest(). If you need more complex requesters, you
  654.     have to use your own message polling loop instead of
  655.     TR_AutoRequest(). You may still use the requester macros though.
  656.  
  657.    SEE ALSO
  658.     TR_EasyRequest()
  659.  
  660. triton.library/TR_CloseProject                 triton.library/TR_CloseProject
  661.  
  662.    NAME    
  663.     TR_CloseProject -- Closes a project/window.
  664.  
  665.    SYNOPSIS
  666.     TR_CloseProject(Project)
  667.                     A0
  668.  
  669.     VOID TR_CloseProject(struct TR_Project *);
  670.  
  671.    FUNCTION
  672.     Closes a Triton project.
  673.  
  674.    SEE ALSO
  675.     TR_OpenProject()
  676.  
  677. triton.library/TR_CloseWindowSafely       triton.library/TR_CloseWindowSafely
  678.  
  679.    NAME    
  680.     TR_CloseWindowSafely -- Closes as window with a shared IDCMP port.
  681.  
  682.    SYNOPSIS
  683.     TR_CloseWindowSafely(Window)
  684.                          A0
  685.  
  686.     VOID TR_CloseWindowSafely(struct Window *);
  687.  
  688.    FUNCTION
  689.     Closes a window which shares its IDCMP port with another window.
  690.     All the pending messages (concerning this window) on the port
  691.     will be removed and the window will be closed.
  692.     
  693.     Do *NOT* use this function to close windows which have an IDCMP
  694.     port set up by Intuition. If you do the port will be left in memory!
  695.     
  696.     If you intend to open a lot of windows all sharing the same IDCMP
  697.     port it is easiest if you create a port yourself and open all
  698.     windows with newwin.IDCMPFlags set to 0 (this tells Intuition NOT to
  699.     set up an IDCMP port). After opening the window set win->UserPort
  700.     to your message port and call ModifyIDCMP() to set your IDCMP flags.
  701.     
  702.     When you then receive messages from Intuition check their
  703.     imsg->IDCMPWindow field to find out what window they came from
  704.     and act upon them.
  705.     
  706.     When closing your windows call TR_CloseWindowSafely() for all of
  707.     them and delete your message port.
  708.  
  709.    INPUTS
  710.     Window - pointer to the window to be closed.
  711.  
  712.    NOTE
  713.     This function is for the advanced Triton user.
  714.  
  715.    SEE ALSO
  716.     intuition.library/CloseWindow()
  717.  
  718. triton.library/TR_CreateApp                       triton.library/TR_CreateApp
  719.  
  720.    NAME    
  721.     TR_CreateApp -- Creates a Triton application.
  722.     TR_CreateAppTags -- Varargs stub for TR_CreateApp.
  723.  
  724.    SYNOPSIS
  725.     app = TR_CreateApp(TagList)
  726.     D0                 A1
  727.  
  728.     struct TR_App * TR_CreateApp(struct TagItem *);
  729.  
  730.     app = TR_CreateAppTags(Tag1,...)
  731.  
  732.     struct TR_App * TR_CreateApp(ULONG,...);
  733.  
  734.    FUNCTION
  735.     Creates an application. An application is required
  736.     for opening windows and polling messages. All projects
  737.     of an application will share one IDCMP port and one
  738.     memory pool.
  739.  
  740.    TAGS
  741.     TRCA_Name        - (STRPTR)
  742.                        Unique name for the application. Must not be
  743.                        longer than 20 characters. Case-insensitive.
  744.                        ' ', '/', '.' and ':' are not allowed.
  745.     TRCA_LongName    - (STRPTR)
  746.                        A user-readable name for the application.
  747.                        Up to 60 characters allowed.
  748.     TRCA_Info        - (STRPTR)
  749.                        Information about the application. Should not
  750.                        be more than 2 lines with 60 characters each.
  751.     TRCA_Version     - (STRPTR)
  752.                        Internal version of the application.
  753.     TRCA_Release     - (STRPTR)
  754.                        Release number of the application.
  755.     TRCA_Date        - (STRPTR)
  756.                        Creation/compilation date. Should be given
  757.                        in standard version string format.
  758.     
  759.     Example:
  760.       Name        : DilloCreate
  761.       LongName    : Armadillo Creator
  762.       Info        : Part of the Armadillo Management System.
  763.                     ⌐ 1994 by DilloWorks Enterprises.
  764.       Version     : 42.135
  765.       Release     : 2.1b▀3
  766.       Date        : 17.6.94
  767.  
  768.    RESULT
  769.     app - A pointer to the created application structure.
  770.           NULL indicates failure.
  771.  
  772.    SEE ALSO
  773.     TR_DeleteApp()
  774.  
  775. triton.library/TR_DeleteApp                       triton.library/TR_DeleteApp
  776.  
  777.    NAME    
  778.     TR_DeleteApp -- Deletes a Triton application.
  779.  
  780.    SYNOPSIS
  781.     TR_DeleteApp(App)
  782.                  A1
  783.  
  784.     VOID TR_DeleteApp(struct TR_App *);
  785.  
  786.    FUNCTION
  787.     Deletes an application created by TR_CreateApp().
  788.  
  789.    NOTES
  790.     All windows have to be closed before deleting the
  791.     corresponding application!
  792.  
  793.    SEE ALSO
  794.     TR_CreateApp()
  795.  
  796. triton.library/TR_DoMethod                         triton.library/TR_DoMethod
  797.  
  798.    NAME    
  799.     TR_DoMethod -- Dispatch a method. (V6)
  800.  
  801.    SYNOPSIS
  802.     Result = TR_DoMethod(Object, MessageID, Data)
  803.                          A0      D0         A1
  804.  
  805.     ULONG TR_DoMethod(struct TROD_Object *, ULONG, APTR);
  806.  
  807.    FUNCTION
  808.     Dispatch a method to an object.
  809.  
  810.    RESULT
  811.     Depends on the class and method being called.
  812.  
  813.    SEE ALSO
  814.     TR_DoMethodClass()
  815.  
  816. triton.library/TR_DoMethodClass               triton.library/TR_DoMethodClass
  817.  
  818.    NAME    
  819.     TR_DoMethodClass -- Dispatch a method through a meta-class. (V6)
  820.  
  821.    SYNOPSIS
  822.     Result = TR_DoMethodClass(Object, MessageID, Data, Class)
  823.                               A0      D0         A1    A2
  824.  
  825.     ULONG TR_DoMethodClass(struct TROD_Object *, ULONG, APTR,
  826.                            struct TR_Class *);
  827.  
  828.    FUNCTION
  829.     Dispatch a method to an object as if the object was of the
  830.     specified class.
  831.  
  832.    RESULT
  833.     Depends on the class and method being called.
  834.  
  835.    SEE ALSO
  836.     TR_DoMethod()
  837.  
  838. triton.library/TR_DrawFrame                       triton.library/TR_DrawFrame
  839.  
  840.    NAME    
  841.     TR_DrawFrame -- Draws a frame/BevelBox. (V6)
  842.  
  843.    SYNOPSIS
  844.     TR_DrawFrame(Project, RastPort, Left, Top, Width,
  845.                  A0       A1        D1    D2   D3
  846.                  Height, Type, Inverted)
  847.                  D4      D0    D5
  848.  
  849.     VOID TR_DrawFrame(struct TR_Project *,
  850.                       struct RastPort *, UWORD, UWORD,
  851.                       UWORD, UWORD, UWORD, BOOL);
  852.  
  853.    FUNCTION
  854.     Draws a frame into the specified RastPort (or into
  855.     the project's default RastPort if the supplied RastPort
  856.     is NULL. Set Inverted to TRUE for a recessed (basic) or
  857.     inverted (abstract) frame.
  858.  
  859.    SEE ALSO
  860.     TR_FrameBorderWidth(), TR_FrameBorderHeight()
  861.  
  862. triton.library/TR_EasyRequest                   triton.library/TR_EasyRequest
  863.  
  864.    NAME    
  865.     TR_EasyRequest -- A high-level requester function.
  866.  
  867.    SYNOPSIS
  868.     selection = TR_EasyRequest(App, BodyFmt, GadFmt, TagList)
  869.     D0                         A1   A2       A3      A0
  870.  
  871.     ULONG TR_EasyRequest(struct TR_App *, STRPTR, STRPTR, struct TagItem *);
  872.  
  873.     selection = TR_EasyRequestTags(App, BodyFmt, GadFmt, Tag,...)
  874.     D0
  875.  
  876.     ULONG TR_EasyRequestTags(struct TR_App *, STRPTR, STRPTR, ULONG,...);
  877.  
  878.    FUNCTION
  879.     Pops up a requester and waits for the user to select a gadget.
  880.  
  881.    INPUTS
  882.     App       - A valid Triton application.
  883.     BodyFmt   - A multi-line text which will be displayed in the
  884.                 requester body. See TR_PrintText() autodoc clip
  885.                 for details about the formatting sequences.
  886.     GadFmt    - The gadget texts, separated by '|'.
  887.     TagList   - Pointer to a TagItem array.
  888.  
  889.    TAGS
  890.     TREZ_ReqPos (ULONG) - The requester's position (TRWP_...).
  891.         The default is TRWP_MOUSEPOINTER.
  892.  
  893.     TREZ_LockProject (struct TR_Project *) - This project will be
  894.         locked while the requester is displayed. Information about
  895.         screen and activity state of the requester are taken from
  896.         this project.
  897.  
  898.     TREZ_Return (ULONG) - Number of the default gadget which can be
  899.         activated by <RETURN>. Defaults to 1 (0 in a single-gadget
  900.         requester).
  901.  
  902.     TREZ_Title (STRPTR) - Requester window title. Default is "System
  903.         request" (or a localized version under OS2.1 and higher).
  904.  
  905.     TREZ_Activate (BOOL) - If this tag is supplied, the activity
  906.         state of the requester window will be taken from this tag's
  907.         argument instead of being inherited from the locked project
  908.         (if applicable).
  909.  
  910.     TRWI_PubScreen (struct Screen *) - A public screen on which the
  911.         window will be opened. The screen *must* have been locked.
  912.  
  913.     TRWI_PubScreenName (STRPTR) - A public screen on which the window
  914.         will be opened. Triton will try to lock the screen with the
  915.         specified name. It will fall back onto the default public
  916.         screen in case the screen can't be found/locked.
  917.  
  918.    RESULT
  919.     selection - The number of the selected gadget. The gadgets are
  920.                 numbered from left to right beginning with 1. The
  921.                 rightmost gadget (or the only gadget in a 1-gadget
  922.                 requester) has got number 0. (ULONG)(-1) is returned
  923.                 for indicating an error.
  924.  
  925.    SEE ALSO
  926.     TR_AutoRequest(), TR_PrintText()
  927.  
  928. triton.library/TR_FirstOccurance             triton.library/TR_FirstOccurance
  929.  
  930.    NAME    
  931.     TR_FirstOccurance -- Finds a character in a string.
  932.  
  933.    SYNOPSIS
  934.     Position = TR_FirstOccurance(Character, String)
  935.     D0                           D0         A0
  936.  
  937.     LONG TR_FirstOccurance(UBYTE, STRPTR);
  938.  
  939.    FUNCTION
  940.     Finds the specified character in the string.
  941.  
  942.    RESULT
  943.     Position - The position of the first occurance of the
  944.     character in the string or -1 if the character couldn't
  945.     be found in the string.
  946.  
  947. triton.library/TR_FrameBorderHeight       triton.library/TR_FrameBorderHeight
  948.  
  949.    NAME    
  950.     TR_FrameBorderHeight -- Returns frame border height. (V6)
  951.  
  952.    SYNOPSIS
  953.     Height = TR_FrameBorderHeight(Project, Type)
  954.                                   A0       D0
  955.  
  956.     ULONG TR_FrameBorderHeight(struct TR_Project *, UWORD);
  957.  
  958.    FUNCTION
  959.     Returns the thickness of the top/bottom borders of the
  960.     specified frame type (TRFT_#?) in a specific project
  961.     taking into account the user's preferences settings.
  962.  
  963.    RESULT
  964.     Height - The height of the borders in pixels
  965.  
  966.    SEE ALSO
  967.     TR_FrameBorderWidth(), TR_DrawFrame()
  968.  
  969. triton.library/TR_FrameBorderWidth         triton.library/TR_FrameBorderWidth
  970.  
  971.    NAME    
  972.     TR_FrameBorderWidth -- Returns frame border width. (V6)
  973.  
  974.    SYNOPSIS
  975.     Width = TR_FrameBorderWidth(Project, Type)
  976.                                 A0       D0
  977.  
  978.     ULONG TR_FrameBorderWidth(struct TR_Project *, UWORD);
  979.  
  980.    FUNCTION
  981.     Returns the thickness of the left/right borders of the
  982.     specified frame type (TRFT_#?) in a specific project
  983.     taking into account the user's preferences settings.
  984.  
  985.    RESULT
  986.     Width - The width of the borders in pixels
  987.  
  988.    SEE ALSO
  989.     TR_FrameBorderHeight(), TR_DrawFrame()
  990.  
  991. triton.library/TR_GetAttribute                 triton.library/TR_GetAttribute
  992.  
  993.    NAME    
  994.     TR_GetAttribute -- Gets an attribute of an object.
  995.  
  996.    SYNOPSIS
  997.     value = TR_GetAttribute(Project, ID, Attribute)
  998.     D0                      A0       D0  D1
  999.  
  1000.     ULONG TR_GetAttribute(struct TR_Project *, ULONG,
  1001.                           ULONG);
  1002.  
  1003.    FUNCTION
  1004.     Gets an attribute of a Triton object. Only attributes
  1005.     of objects with an ID can be queried.
  1006.  
  1007.    RESULT
  1008.     value - Value of the specified attribute. Depends
  1009.             on specific class and attribute.
  1010.  
  1011.    SEE ALSO
  1012.     Class descriptions, TR_SetAttribute()
  1013.  
  1014. triton.library/TR_GetErrorString             triton.library/TR_GetErrorString
  1015.  
  1016.    NAME    
  1017.     TR_GetErrorString -- Creates an error message
  1018.  
  1019.    SYNOPSIS
  1020.     Message = TR_GetErrorString(Number)
  1021.     D0                          D0
  1022.  
  1023.     STRPTR TR_GetErrorString(UWORD);
  1024.  
  1025.    FUNCTION
  1026.     Creates an error message which matches the supplied
  1027.     Triton error code.
  1028.  
  1029.    INPUTS
  1030.     Number - Triton error code. In most cases you will
  1031.              get this with TR_GetLastError().
  1032.  
  1033.    RESULT
  1034.     Message - Pointer to a user-readable error message
  1035.               or an empty string ("") if none available.
  1036.  
  1037.    BUGS
  1038.     In older Triton versions, TR_GetErrorString() did
  1039.     return NULL instead of an empty string. This is
  1040.     fixed in V4.
  1041.  
  1042.    SEE ALSO
  1043.     TR_GetLastError()
  1044.  
  1045. triton.library/TR_GetLastError                 triton.library/TR_GetLastError
  1046.  
  1047.    NAME    
  1048.     TR_GetLastError -- Gets the last error code
  1049.  
  1050.    SYNOPSIS
  1051.     Number = TR_GetLastError(App)
  1052.     D0                       A1
  1053.  
  1054.     UWORD TR_GetLastError(struct TR_App *);
  1055.  
  1056.    FUNCTION
  1057.     Returns the TRER code of the last error which occured
  1058.     in the application and sets the internal tra_LastError
  1059.     back to TRER_OK.
  1060.  
  1061.    INPUTS
  1062.     App - Pointer to a Triton Application
  1063.  
  1064.    RESULT
  1065.     Number - TRER error code
  1066.  
  1067.    SEE ALSO
  1068.     TR_GetErrorString()
  1069.  
  1070. triton.library/TR_GetMsg                             triton.library/TR_GetMsg
  1071.  
  1072.    NAME    
  1073.     TR_GetMsg -- Gets a Triton message.
  1074.  
  1075.    SYNOPSIS
  1076.     message = TR_GetMsg(App)
  1077.     D0                  A1
  1078.  
  1079.     struct TR_Message * TR_GetMsg(struct TR_App *);
  1080.  
  1081.    FUNCTION
  1082.     Gets a message from a Triton application created
  1083.     by TR_CreateApp(). You may first want to wait for
  1084.     a message with TR_Wait().
  1085.  
  1086.    NOTES
  1087.     Please reply all messages as quickly as possible
  1088.     with TR_ReplyMsg(). Shutting down an application
  1089.     does not free unreplied messages and resources
  1090.     which are attached to them (like AppMessages).
  1091.  
  1092.    SEE ALSO
  1093.     TR_ReplyMsg(), TR_Wait(), TR_CreateMsg()
  1094.  
  1095. triton.library/TR_GetPen                             triton.library/TR_GetPen
  1096.  
  1097.    NAME    
  1098.     TR_GetPen -- Returns a pen number. (V6)
  1099.  
  1100.    SYNOPSIS
  1101.     Pen = TR_GetPen(Project, PenType, PenData)
  1102.                     A0       D0       D1
  1103.  
  1104.     ULONG TR_GetPen(struct TR_Project *, ULONG, ULONG);
  1105.  
  1106.    FUNCTION
  1107.     Returns the pen specified by PenType and PenData.
  1108.  
  1109.    RESULT
  1110.     Pen - The number of the requested pen
  1111.  
  1112. triton.library/TR_LockProject                   triton.library/TR_LockProject
  1113.  
  1114.    NAME    
  1115.     TR_LockProject -- Locks a Triton project.
  1116.  
  1117.    SYNOPSIS
  1118.     TR_LockProject(Project)
  1119.                    A0
  1120.  
  1121.     VOID TR_LockProject(struct TR_Project *);
  1122.  
  1123.    FUNCTION
  1124.     Locks a Triton project. Only window resizing will
  1125.     still work in a locked project. All other kinds of
  1126.     input (i.e. all input which requires interaction
  1127.     by your program and not only by Triton) are not
  1128.     possible.
  1129.  
  1130.    SEE ALSO
  1131.     TR_UnlockProject()
  1132.  
  1133. triton.library/TR_LockScreen                     triton.library/TR_LockScreen
  1134.  
  1135.    NAME    
  1136.     TR_LockScreen -- Get a project's screen
  1137.  
  1138.    SYNOPSIS
  1139.     screen = TR_LockScreen(Project)
  1140.     D0                     A0
  1141.  
  1142.     struct Screen * TR_LockScreen(struct TR_Project *);
  1143.  
  1144.    FUNCTION
  1145.     Lock the screen of a Triton project for use with non-Triton
  1146.     windows (e.g. for opening a file requester on the screen of a
  1147.     Triton application). The screen must be unlocked later with
  1148.     TR_UnlockScreen(). Locking/unlocking calls are nested.
  1149.  
  1150.    RESULT
  1151.     screen - Pointer to the project's screen or NULL to indicate an
  1152.              error. In this case the application should *not* abort,
  1153.              but *quietly* use another screen (preferably the
  1154.              Workbench screen) instead.
  1155.  
  1156.    SEE ALSO
  1157.     TR_UnlockScreen()
  1158.  
  1159. triton.library/TR_NumOccurances               triton.library/TR_NumOccurances
  1160.  
  1161.    NAME    
  1162.     TR_NumOccurances -- Counts a character in a string.
  1163.  
  1164.    SYNOPSIS
  1165.     Number = TR_NumOccurances(Character, String)
  1166.     D0                        D0         A0
  1167.  
  1168.     LONG TR_NumOccurances(UBYTE, STRPTR);
  1169.  
  1170.    FUNCTION
  1171.     Counts the number of occurances of the character in the string.
  1172.  
  1173.    RESULT
  1174.     Number - The number of matching characters found.
  1175.  
  1176. triton.library/TR_ObtainWindow                 triton.library/TR_ObtainWindow
  1177.  
  1178.    NAME    
  1179.     TR_ObtainWindow -- Get a project's window. (V3)
  1180.  
  1181.    SYNOPSIS
  1182.     window = TR_ObtainWindow(Project)
  1183.     D0                       A0
  1184.  
  1185.     struct Window * TR_ObtainWindow(struct TR_Project *);
  1186.  
  1187.    FUNCTION
  1188.     Lock the window of a Triton project for non-Triton window
  1189.     operations (e.g. activating a window or bringing it to the
  1190.     front). Do not manipulate the contents of Triton windows!
  1191.     Locked windows must be freed again with TR_UnlockWindow().
  1192.     Locking/unlocking calls are nested.
  1193.  
  1194.    RESULT
  1195.     window - Pointer to the project's Window. A value of NULL should
  1196.              be quietly ignored. NULL simply indicates that there is
  1197.              currently no window available.
  1198.  
  1199.    SEE ALSO
  1200.     TR_UnlockWindow()
  1201.  
  1202. triton.library/TR_OpenProject                   triton.library/TR_OpenProject
  1203.  
  1204.    NAME    
  1205.     TR_OpenProject -- Opens a project/window.
  1206.     TR_OpenProjectTags -- Varargs stub for TR_OpenProject.
  1207.  
  1208.    SYNOPSIS
  1209.     Project = TR_OpenProject(App, TagItems)
  1210.     D0                       A1   A0
  1211.  
  1212.     struct TR_Project *TR_OpenProject(struct TR_App *,
  1213.                                       struct TagItem *);
  1214.  
  1215.     Project = TR_OpenProjectTags(App, Tag1,...)
  1216.  
  1217.     struct TR_Project *TR_OpenProjectTags(struct TR_App *,
  1218.                                           ULONG,...);
  1219.  
  1220.    FUNCTION
  1221.     Opens a Triton project. The supplied taglist may contain
  1222.     window tags, menu tags and object tags (in that order).
  1223.     Mutually exclusive menus are not yet supported. When creating
  1224.     a menu item with an ID, TRAT_ID must be the *last* tag.
  1225.     A valid application pointer must be supplied.
  1226.  
  1227.    INPUTS
  1228.     App = Valid application pointer
  1229.     TagItems = List of tags describing the project
  1230.  
  1231.    TAGS
  1232.     The taglist may contain window tags, menu tags and object tags
  1233.     (in that order!). The following list shows the window and menu
  1234.     tags. See the class descriptions for the object tags.
  1235.  
  1236.     TRWI_Title (STRPTR) - The window title (changeable)
  1237.  
  1238.     TRWI_ScreenTitle (STRPTR) - The screen title (changeable) (V2)
  1239.  
  1240.     TRWI_Flags (ULONG) - The Triton window flags:
  1241.     - TRWF_BACKDROP        : Create a backdrop borderless window
  1242.                              in full screen size
  1243.     - TRWF_NODRAGBAR       : No dragging bar
  1244.     - TRWF_NODEPTHGADGET   : No depth arranging gadget
  1245.     - TRWF_NOCLOSEGADGET   : No close gadget
  1246.     - TRWF_NOACTIVATE      : Don't activate window
  1247.     - TRWF_NOESCCLOSE      : Don't send TRMS_CLOSEWINDOW when
  1248.                              Esc is pressed
  1249.     - TRWF_NOPSCRFALLBACK  : Don't fall back onto default PubScreen
  1250.     - TRWF_NOZIPGADGET     : No zip/zoom gadget
  1251.     - TRWF_ZIPCENTERTOP    : Center zipped window on screen title bar
  1252.     - TRWF_NOMINTEXTWIDTH  : Window title text length doesn't count
  1253.                              for window size calculation
  1254.     - TRWF_NOSIZEGADGET    : No size gadget
  1255.     - TRWF_NOFONTFALLBACK  : Don't fall back to topaz/8
  1256.     - TRWF_NODELZIP        : Don't zip the window when Del is pressed
  1257.     - TRWF_SIMPLEREFRESH   : Use simple instead of smart refresh. (V1)
  1258.                              This flag is *obsolete* in V3+!
  1259.                              The refresh type is now set by the user.
  1260.     - TRWF_ZIPTOCURRENTPOS : Zip the window without changing its
  1261.                              position. Requires OS3.0 or higher.
  1262.     - TRWF_APPWINDOW       : Create an AppWindow even if no object
  1263.                              reacts on dropped icons
  1264.     - TRWF_ACTIVATESTRGAD  : Activate the first string gadget after
  1265.                              opening the window
  1266.     - TRWF_HELP            : When the user presses <Help> over a menu
  1267.                              item or a display object, a TRMS_HELP
  1268.                              message will be sent (V2)
  1269.     - TRWF_SYSTEMACTION    : When a system action IDCMP message arrives,
  1270.                              a corresponding Triton message will be
  1271.                              generated. These are currently
  1272.                              TRMS_DISKINSERTED and TRMS_DISKREMOVED.
  1273.                              (V4)
  1274.  
  1275.     TRWI_Underscore (UBYTE *) - The underscore for menu and gadget
  1276.         shortcuts. The default is "_".
  1277.  
  1278.     TRWI_Position (ULONG) - The window position:
  1279.     - TRWP_DEFAULT         : Let Triton choose a good position for
  1280.                              the window (default; preferred)
  1281.     - TRWP_BELOWTITLEBAR   : Left side of screen; below the title bar
  1282.     - TRWP_CENTERTOP       : Top of screen; centered on the title bar
  1283.     - TRWP_TOPLEFTSCREEN   : Top left corner of screen
  1284.     - TRWP_CENTERSCREEN    : Centered on the screen
  1285.     - TRWP_CENTERDISPLAY   : Centered on the currently displayed clip
  1286.     - TRWP_MOUSEPOINTER    : Centered under the mouse pointer
  1287.  
  1288.     TRWI_CustomScreen (struct Screen *) - A custom screen on which
  1289.         the window will be opened
  1290.  
  1291.     TRWI_PubScreen (struct Screen *) - A public screen on which the
  1292.         window will be opened. The screen *must* have been locked.
  1293.  
  1294.     TRWI_PubScreenName (STRPTR) - A public screen on which the window
  1295.         will be opened. Triton will try to lock the screen with the
  1296.         specified name. It will fall back onto the default public
  1297.         screen in case the screen can't be found/locked if you don't
  1298.         specify TRWF_NOPSCRFALLBACK.
  1299.  
  1300.     TRWI_PropFontAttr (struct TextAttr *) - The proportional font. If
  1301.         Triton can't open the font or the window would become too big
  1302.         for the screen with this font and you didn't specify
  1303.         TRWF_NOFONTFALLBACK, Triton will try to use topaz/8 instead.
  1304.  
  1305.     TRWI_FixedWidthFontAttr (struct TextAttr *) - The fixed-width
  1306.         font. If Triton can't open the font or the window would
  1307.         become too big for the screen with this font and you didn't
  1308.         specify TRWF_NOFONTFALLBACK, Triton will try to use topaz/8
  1309.         instead.
  1310.  
  1311.     TRWI_Backfill (ULONG) - The backfill type:
  1312.     - TRBF_WINDOWBACK        : Default window background; Can be
  1313.                                changed by the user in the Triton
  1314.                                Preferences editor
  1315.     - TRBF_REQUESTERBACK     : Default requester background; Can be
  1316.                                changed by the user in the Triton
  1317.                                Preferences editor
  1318.     - TRBF_NONE              : No backfill (i.e. fill with
  1319.                                BACKGROUNDPEN)
  1320.     - TRBF_SHINE             : Fill with SHINEPEN
  1321.     - TRBF_SHADOW            : Fill with SHADOWPEN
  1322.     - TRBF_FILL              : Fill with FILLPEN
  1323.     - TRBF_SHINE_SHADOW      : Fill with a pattern composed of
  1324.                                SHINEPEN and SHADOWPEN
  1325.     - TRBF_SHINE_FILL        : ~ SHINEPEN and FILLPEN
  1326.     - TRBF_SHINE_BACKGROUND  : ~ SHINEPEN and BACKGROUNDPEN
  1327.     - TRBF_SHADOW_FILL       : ~ SHADOWPEN and FILLPEN
  1328.     - TRBF_SHADOW_BACKGROUND : ~ SHADOWPEN and BACKGROUNDPEN
  1329.     - TRBF_FILL_BACKGROUND   : ~ FILLPEN and BACKGROUNDPEN
  1330.  
  1331.     TRWI_ID (ULONG) - An ID for the window. Identical windows (e.g.
  1332.         several identical data editor windows) should share the same
  1333.         ID, otherwise application-wide unique IDs should be used.
  1334.  
  1335.     TRWI_Dimensions (struct TR_Dimensions *) - A window dimension
  1336.         structure. The user program must supply a structure on its
  1337.         own if it wants to use this feature. Triton will *not*
  1338.         allocate it. If you use a dimensions structure, Triton will
  1339.         copy the window dimensions into it when you close the window.
  1340.         If you supply a filled-in dimension structure, Triton will try
  1341.         to open the window with these dimensions. Supply a cleared
  1342.         structure if you want Triton to use the default dimensions (the
  1343.         position may then be specified with TRWI_Position) and fill
  1344.         in the structure for later use.
  1345.  
  1346.     TRWI_QuickHelp (BOOL) - When this flag is set, QuickHelp windows
  1347.         will pop up for those objects which have QuickHelp strings
  1348.         assigned to them. (changeable) (V4)
  1349.  
  1350.     TRMN_Title (STRPTR) - A menu label
  1351.  
  1352.     TRMN_Item (STRPTR) - A menu item label. You may attach a
  1353.         keyboard shortcut to a menu by starting the label string
  1354.         with the shortcut followed by the project's underscore
  1355.         character and then the actual label. You may also use
  1356.         extended menu shortcuts composed of more than one character.
  1357.         Extended shortcuts can be specified with an underscore at
  1358.         the beginning, then the shortcut, again an underscore and
  1359.         the label. You may specify TRMN_BARLABEL instead of a string
  1360.         to create a separator bar in the menu.
  1361.  
  1362.     TRMN_Sub (STRPTR) - A sub-menu item label. See TRMN_Item.
  1363.  
  1364.     TRMN_Flags (ULONG) - Flags for a menu item:
  1365.     - TRMF_CHECKIT         : The menu item may be checked.
  1366.     - TRMF_CHECKED         : The menu item is checked. You may, but
  1367.                              you do not need to specify TRMF_CHECKIT
  1368.                              in addition.
  1369.     - TRMF_DISABLED        : The menu / (sub) item will be ghosted.
  1370.  
  1371.    RESULT
  1372.     Project - The pointer to the TR_Project structure
  1373.  
  1374.    SEE ALSO
  1375.     TR_CloseProject()
  1376.  
  1377. triton.library/TR_PrintText                       triton.library/TR_PrintText
  1378.  
  1379.    NAME    
  1380.     TR_PrintText -- Prints a line of text. (V6)
  1381.  
  1382.    SYNOPSIS
  1383.     TR_PrintText(Project, RastPort, Text, X, Y, Width, Flags)
  1384.                  A0       A1        A2    D1 D2 D3     D0
  1385.  
  1386.     VOID TR_PrintText(struct TR_Project *,
  1387.                       struct RastPort *, STRPTR,
  1388.                       ULONG, ULONG, ULONG, ULONG);
  1389.  
  1390.    FUNCTION
  1391.     Prints a text into the specified RastPort (or into
  1392.     the project's default RastPort if the supplied RastPort
  1393.     is NULL.
  1394.  
  1395.     If you specify TRTX_MULTILINE some formatting sequences
  1396.     may appear in the text:
  1397.     - A <newline> (\n) will start a new line with a small
  1398.       space above it.
  1399.     - A <return> (\r) will add a normal space instead.
  1400.     - A <tab> (\t) will add a normal space, then a 3D separator
  1401.       line and again a normal space.
  1402.  
  1403.     The following sequences are allowed at the beginning of
  1404.     a line only:
  1405.     - '%b' switches to boldface,
  1406.     - '%3' and '%s' (V2+) to 3D text,
  1407.     - '%h' to highlight
  1408.     - and '%n' to normal style.
  1409.     - '%%' inserts a '%' character.
  1410.  
  1411.    SEE ALSO
  1412.     TR_TextWidth()
  1413.  
  1414. triton.library/TR_ReleaseWindow               triton.library/TR_ReleaseWindow
  1415.  
  1416.    NAME    
  1417.     TR_ReleaseWindow -- Release a project's window. (V3)
  1418.  
  1419.    SYNOPSIS
  1420.     TR_ReleaseWindow(Window)
  1421.                     A0
  1422.  
  1423.     VOID TR_ReleaseWindow(struct Window *);
  1424.  
  1425.    FUNCTION
  1426.     Unlock a window which has been locked by TR_ObtainWindow(). All
  1427.     locked windows must be unlocked! Locking/unlocking calls are
  1428.     nested.
  1429.  
  1430.    SEE ALSO
  1431.     TR_ObtainWindow()
  1432.  
  1433. triton.library/TR_ReplyMsg                         triton.library/TR_ReplyMsg
  1434.  
  1435.    NAME    
  1436.     TR_ReplyMsg -- Replies a Triton message.
  1437.  
  1438.    SYNOPSIS
  1439.     TR_ReplyMsg(Message)
  1440.                 A1
  1441.  
  1442.     VOID TR_ReplyMsg(struct TR_Message *);
  1443.  
  1444.    FUNCTION
  1445.     Replies a message received by TR_GetMsg().
  1446.  
  1447.    SEE ALSO
  1448.     TR_GetMsg(), TR_Wait()
  1449.  
  1450. triton.library/TR_SendMessage                   triton.library/TR_SendMessage
  1451.  
  1452.    NAME    
  1453.     TR_SendMessage -- Send a message to one or more objects. (V4)
  1454.  
  1455.    SYNOPSIS
  1456.     TR_SendMessage(Project, ID, MessageID, MessageData)
  1457.                    A0       D0  D1         A1
  1458.  
  1459.     ULONG TR_SendMessage(struct TR_Project *, ULONG,
  1460.                          ULONG, void *);
  1461.  
  1462.    FUNCTION
  1463.     Sends an object message, specified by its ID (TROM_...)
  1464.     and the message data to one or more objects of a project
  1465.     which share the specified ID. By specifying an ID of NULL,
  1466.     you can send a message to the project itself.
  1467.  
  1468.    SEE ALSO
  1469.     Class descriptions, TR_SetAttribute, TR_GetAttribute()
  1470.  
  1471. triton.library/TR_SetAttribute                 triton.library/TR_SetAttribute
  1472.  
  1473.    NAME    
  1474.     TR_SetAttribute -- Sets an attribute of an object.
  1475.  
  1476.    SYNOPSIS
  1477.     TR_SetAttribute(Project, ID, Attribute, Value)
  1478.                     A0       D0  D1         D2
  1479.  
  1480.     VOID TR_SetAttribute(struct TR_Project *, ULONG,
  1481.                          ULONG, ULONG);
  1482.  
  1483.    FUNCTION
  1484.     Sets an attribute of a Triton object. Only attributes
  1485.     of objects with an ID can be changed. You can change the
  1486.     default attribute of an object by specifying 0 as
  1487.     the attribute to change. By specifying an ID of 0, you
  1488.     can change those attributes of a Triton project which are
  1489.     marked with '(changeable)' in the TR_OpenProject docs.
  1490.  
  1491.    SEE ALSO
  1492.     Class descriptions, TR_GetAttribute(), TR_OpenProject()
  1493.  
  1494. triton.library/TR_TextHeight                     triton.library/TR_TextHeight
  1495.  
  1496.    NAME    
  1497.     TR_TextWidth -- Returns text height. (V6)
  1498.  
  1499.    SYNOPSIS
  1500.     Height = TR_TextHeight(Project, Text, Flags)
  1501.                            A0       A2    D0
  1502.  
  1503.     ULONG TR_TextHeight(struct TR_Project *, STRPTR, ULONG);
  1504.  
  1505.    FUNCTION
  1506.     Returns the height of a text string with the specified
  1507.     TRTX_* flags in the given project.
  1508.  
  1509.    RESULT
  1510.     Height - The height of the text in pixels
  1511.  
  1512.    SEE ALSO
  1513.     TR_TextWidth(), TR_PrintText()
  1514.  
  1515. triton.library/TR_TextWidth                       triton.library/TR_TextWidth
  1516.  
  1517.    NAME    
  1518.     TR_TextWidth -- Returns text width. (V6)
  1519.  
  1520.    SYNOPSIS
  1521.     Width = TR_TextWidth(Project, Text, Flags)
  1522.                          A0       A2    D0
  1523.  
  1524.     ULONG TR_TextWidth(struct TR_Project *, STRPTR, ULONG);
  1525.  
  1526.    FUNCTION
  1527.     Returns the width of a text string with the specified
  1528.     TRTX_* flags in the given project.
  1529.  
  1530.    RESULT
  1531.     Width - The width of the text in pixels
  1532.  
  1533.    SEE ALSO
  1534.     TR_TextHeight(), TR_PrintText()
  1535.  
  1536. triton.library/TR_UnlockProject               triton.library/TR_UnlockProject
  1537.  
  1538.    NAME    
  1539.     TR_UnlockProject -- Unlocks a Triton project.
  1540.  
  1541.    SYNOPSIS
  1542.     TR_UnlockProject(Project)
  1543.                      A0
  1544.  
  1545.     VOID TR_UnlockProject(struct TR_Project *);
  1546.  
  1547.    FUNCTION
  1548.     Unlocks a Triton project previously locked by
  1549.     TR_LockProject().
  1550.  
  1551.    SEE ALSO
  1552.     TR_LockProject()
  1553.  
  1554. triton.library/TR_UnlockScreen                 triton.library/TR_UnlockScreen
  1555.  
  1556.    NAME    
  1557.     TR_UnlockScreen -- Release a project's screen
  1558.  
  1559.    SYNOPSIS
  1560.     TR_UnlockScreen(Screen)
  1561.                     A0
  1562.  
  1563.     VOID TR_UnlockScreen(struct Screen *);
  1564.  
  1565.    FUNCTION
  1566.     Unlock a screen which has been locked by TR_LockScreen(). All
  1567.     locked screens must be unlocked! Locking/unlocking calls are
  1568.     nested.
  1569.  
  1570.    SEE ALSO
  1571.     TR_LockScreen()
  1572.  
  1573. triton.library/TR_Wait                                 triton.library/TR_Wait
  1574.  
  1575.    NAME    
  1576.     TR_Wait -- Waits for exec signals.
  1577.  
  1578.    SYNOPSIS
  1579.     Signals = TR_Wait(App, OtherBits)
  1580.             A1   D0
  1581.  
  1582.     ULONG TR_Wait(struct TR_App *, ULONG);
  1583.  
  1584.    FUNCTION
  1585.     Waits until a signal of the specified application
  1586.     or one of the other signal bits is set.
  1587.  
  1588.    RESULT
  1589.     Signals - The mask of set signals
  1590.  
  1591.    SEE ALSO
  1592.     TR_GetMsg(), TR_ReplyMsg()
  1593.  
  1594.