home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / Tools Plus 2.5 / Tools Plus 2.5 (C⁄C++ & Pascal) / User Manual / 00-Contents < prev    next >
Encoding:
Text File  |  1994-05-24  |  14.2 KB  |  430 lines  |  [TEXT/ttxt]

  1. Contents
  2. ````````
  3.  
  4.   1  Introduction to Tools Plus
  5.          What is Tools Plus
  6.          An Overview of Tools Plus
  7.          The Tools Plus Advantage
  8.          Who can benefit from Tools Plus
  9.          What kind of applications can be written with Tools Plus
  10.          What is Tools Plus not suitable for
  11.          System Requirements
  12.          Assumptions made when writing this manual
  13.          Convensions used throughout this manual
  14.          Software Updates
  15.          For your information (recommended reading)
  16.  
  17.   2  Installing Tools Plus
  18.          Installing Tools Plus in THINK C
  19.              Adding Tools Plus to a THINK C Project
  20.              Tools Plus Segments
  21.          Installing Tools Plus in THINK Pascal
  22.              Adding Tools Plus to a THINK Pascal Project
  23.              After Compiling
  24.              Tools Plus Segments
  25.          Compiling The C Demo Application
  26.          Compiling The Pascal Demo Application
  27.  
  28.   3  Designing Your Application
  29.          Overview
  30.          A Macintosh Event, in Brief
  31.          Macintosh Event Queue
  32.          Key Up Events
  33.          Tools Plus Events
  34.          The Main Event Loop
  35.          System 5 and 6’s Finder and MultiFinder, and System 7
  36.              Finder
  37.              MultiFinder
  38.              System 7
  39.          The C Header file (ToolsPlus.h)
  40.          Range Checking
  41.          What to read next
  42.  
  43.   4  Initialization
  44.          Initializing Tools Plus
  45.          Initialization Failure
  46.          Other Initialization
  47.          The Cursor
  48.  
  49.   5  Windows
  50.         Overview
  51.             Window Types
  52.             Title Bar, Close box, and Zoom box
  53.             Size Box
  54.             Maximum Number of Open Windows
  55.             Tool Bar and Floating Palettes
  56.             Standard Windows
  57.             Active Window
  58.             Work Window
  59.             Current Window
  60.             Editing Field Window
  61.             Modal Windows
  62.             Window Layers
  63.             Global and Local Co-ordinates
  64.             Handling Windows
  65.         Opening a window
  66.             Floating Palettes
  67.         Opening a tool bar
  68.         Closing a window, tool bar, or palette
  69.         Changing a window’s size
  70.         Moving a window
  71.         Hiding/showing a window
  72.         Activating a window
  73.         Making a window current without activating it
  74.         Making the active window current
  75.         Changing a window’s title
  76.         Setting a window’s size limits
  77.         Setting the “standard” and “user” co-ordinates for zooming
  78.         Getting the “standard” and “user” co-ordinates for zooming
  79.         Getting a window’s status information
  80.         Getting your app’s active window number
  81.         Getting your app’s current window number
  82.         Getting your app’s front most window number
  83.         Getting your app’s tool bar number
  84.         Getting your app’s front most floating palette’s number
  85.         Getting your app’s front most standard window number
  86.         Getting your app’s work window number
  87.         Getting the window number of your app’s active edit field
  88.         Determining if a window is open
  89.         Determining if a window is visible
  90.         Determining a window’s type
  91.         Getting a window’s pointer
  92.  
  93.   6  Buttons
  94.         Overview
  95.             Button Types
  96.             Button States
  97.             Button Titles
  98.             Fonts
  99.             Default Button
  100.             Handling Buttons
  101.         Creating a new button
  102.             Fonts
  103.             Default Button
  104.         Deleting a button
  105.         Enabling/Disabling a button
  106.         Selecting/Deselecting a button
  107.         Determining if a button is enabled
  108.         Determining if a button is selected
  109.         Changing a button’s title
  110.         Flashing a button (simulating selection)
  111.         Setting a default button
  112.         Removing the “default button” status from a window
  113.  
  114.   7  Picture Buttons
  115.         Overview
  116.             Button Types
  117.             Button Behavior
  118.             Selection Effects
  119.             Disabling Effects
  120.             Button’s Value and Stages
  121.             Handling Picture Buttons
  122.         Creating a new picture button
  123.             Resource IDs
  124.                 Icon Resource IDs
  125.                 3D SICN Buttons
  126.                 PICT Resource IDs
  127.             Behavior and Appearance Specification
  128.             Rate of Repeating Events
  129.         Deleting a picture button
  130.         Enabling/Disabling a picture button
  131.         Selecting/Deselecting a picture button
  132.         Getting a picture button’s minimum value limit
  133.         Setting a picture button’s minimum value limit
  134.         Getting a picture button’s maximum value limit
  135.         Setting a picture button’s maximum value limit
  136.         Getting a picture button’s current value
  137.         Setting a picture button’s current value
  138.         Setting a picture button’s value and selection state
  139.         Setting a picture button’s value change rate
  140.         Setting a picture button’s value change speed
  141.         Determining if a picture button is enabled
  142.         Determining if a picture button is selected
  143.         Flashing a picture button (simulating selection)
  144.  
  145.   8  Scroll Bars
  146.         Overview
  147.             Scroll Bar States
  148.             Handling Scroll Bars
  149.         Creating a new scroll bar
  150.         Deleting a scroll bar
  151.         Enabling/disabling a scroll bar
  152.         Getting a scroll bar’s minimum value limit
  153.         Setting a scroll bar’s minimum value limit
  154.         Getting a scroll bar’s maximum value limit
  155.         Setting a scroll bar’s maximum value limit
  156.         Getting a scroll bar’s current value
  157.         Setting a scroll bar’s current value
  158.  
  159.   9  Editing Fields
  160.         Overview
  161.             Field Capacity
  162.             Alignment of text in a field
  163.             The Window’s Active Field
  164.             Activating a Field
  165.             Editing Field Window
  166.             The Field’s String & Edited Text
  167.             Fonts
  168.             Length Limited Fields
  169.             Word Wrap
  170.             Clicking and Tabbing in fields
  171.             Using Fields
  172.             Mac 512KE and Mac Plus keyboard with numeric pad
  173.             The Edit Menu
  174.             Handling Fields
  175.             Special Handling of Fields
  176.         Creating a new field
  177.             Fonts
  178.         Deleting a field
  179.         Activating a field
  180.         Deactivating a field
  181.         Clicking in an inactive field
  182.         Getting the active field’s edited text
  183.         Saving the active field’s edited text as the field’s string
  184.         Getting the window number of your app’s active edit field
  185.         Getting the active field’s number
  186.         Turning field length limiting on/off
  187.         Repositioning a field
  188.             Scrolling fields
  189.         Pasting into a field under your application’s control
  190.  
  191.   10  List Boxes
  192.         Overview
  193.             Fonts
  194.             Handling List Boxes
  195.         Creating a new list box
  196.             Selection Methods
  197.             Fonts
  198.         Deleting a list box
  199.         Adding a new line / replacing an existing line in a list box
  200.         Getting a line’s text
  201.         Searching lines for specific text (alphabetic order)
  202.         Selecting/Deselecting a line
  203.         Determine if a line is selected
  204.         Determine the next selected line number
  205.         Inserting a blank line into a list box
  206.         Deleting a line
  207.         Turning a list box’s drawing on/off
  208.  
  209.   11  Pop-Up Menus
  210.         Overview
  211.             Command Keys & Hierarchical Pop-Up Menus
  212.             Handling Pop-Up Menus
  213.         Creating a new pop-up menu
  214.             Appearance and Behavior
  215.             Pop-Up Menus on Color Backgrounds
  216.         Adding, changing or renaming a pop-up menu item
  217.             Metacharacters
  218.         Inserting a pop-up menu item
  219.         Deleting a pop-up menu or pop-up menu item
  220.         Getting a pop-up menu item’s text
  221.         Renaming a pop-up menu item
  222.         Enabling or disabling a pop-up menu or pop-up menu item
  223.         Determine if a pop-up menu is enabled
  224.         Displaying or hiding the Check mark
  225.         Displaying or hiding special marks
  226.         Geting a pop-up menu item’s special mark
  227.         Setting a pop-up menu item’s icon
  228.         Geting a pop-up menu item’s icon
  229.         Changing a pop-up menu item’s style
  230.         Determining the number of items in a pop-up menu
  231.         Determining the selected item in a pop-up menu
  232.  
  233.   12  Menus
  234.         Overview
  235.             Menus Accessed by MultiFinder and System 7
  236.             Edit Menu
  237.             Desk Accessories
  238.             Menus and Editing Fields
  239.             Menus and Desk Accessories
  240.             Command Key Equivalents
  241.             Handling Menus
  242.         Creating the Apple menu
  243.         Creating and renaming a menu or menu item
  244.             Metacharacters
  245.         Attaching or detaching a hierarchical menu
  246.         Inserting a menu item
  247.         Deleting a menu or menu item
  248.         Updating the menu bar (redrawing it)
  249.         Getting a menu item’s text
  250.         Renaming a menu item
  251.         Enabling or disabling a menu or menu item
  252.         Displaying or hiding the Check mark
  253.         Displaying or hiding special marks
  254.         Getting a menu item’s special mark
  255.         Setting a menu item’s Command-key equivalent
  256.         Getting a menu item’s Command-key equivalent
  257.         Setting a menu item’s icon
  258.         Getting a menu item’s icon
  259.         Changing a menu item’s style
  260.         Determining the number of items in a menu
  261.         Determining a menu’s parent menu
  262.         Determining a menu item’s submenu
  263.         Highlight or unhighlight a menu
  264.  
  265.   13  Cursors
  266.         Overview
  267.             Automatic Cursor Changes
  268.             The Watch Cursor
  269.             Starting your application
  270.             The Cursor Table
  271.             Advanced Features
  272.             Cursor Animation
  273.             Handling Cursors
  274.         Changing the cursor’s shape
  275.         Resetting cursor shape according to window orientation
  276.         Creating a new cursor table
  277.         Deleting a cursor table
  278.         Creating/replacing a cursor zone (using a rectangle)
  279.         Creating/replacing a cursor zone (using a region)
  280.         Deleting a cursor zone
  281.         Getting a cursor zone’s bounding rectangle
  282.         Getting a cursor zone’s region
  283.         Indicate that cursor zone regions have been altered
  284.         Making a window use a cursor table (or stop using one)
  285.         Determining which cursor zone contains a specified point
  286.         Enabling/disabling button clicks during a watch cursor
  287.  
  288.   14  System Polling
  289.         Overview
  290.         What Is Polling?
  291.         Task Switching
  292.         Background Processing
  293.         Macintosh Events
  294.         Watch Cursor -- a busy system
  295.         The Event Queue
  296.         Tools Plus Event Record
  297.         Event Record Fields
  298.         Event Modifiers
  299.             Event Modifiers Using C
  300.             Event Modifiers Using Pascal
  301.         PollSystem (System polling)
  302.             Tools Plus Event Codes
  303.             What Does PollSystem Do?
  304.                 Internally Processed Events
  305.                 Externally Processed Events
  306.             Inside PollSystem
  307.             Translating Toolbox events to Tools Plus events
  308.         Responding to Events
  309.             doNothing
  310.             doChgWindow
  311.             doRefresh
  312.             doGoAway
  313.             doButton
  314.             doMenu
  315.             doKeyDown
  316.             doAutoKey
  317.             doKeyUp
  318.             doClickField
  319.             doScrollBar
  320.             doListBox
  321.             doClick
  322.             doPopUpMenu
  323.             doPictButton
  324.             doClickControl
  325.             doManual
  326.             doMoveWindow
  327.             doGrowWindow
  328.             doClickDesk
  329.             doZoomWindow
  330.             doSuspend
  331.             doResume
  332.         Scheduling background processing
  333.         Determining if "scheduling processing" is supported
  334.         Discontinuing multiple clicks or drags
  335.         Determining if your application is suspended
  336.         “Field to Event” Cross reference
  337.  
  338.   15  Color Drawing & Multiple Monitors
  339.         Overview
  340.             Using One Monitor
  341.             Using Multiple Monitors
  342.             Changing Screen Settings
  343.         Determining if Color QuickDraw is used
  344.         Determining the number of logical screens
  345.         Beginning color-dependent drawing on a window
  346.         Ending color-dependent drawing on a window
  347.         Determining the number of colors on a screen
  348.         Determining if the screen is set to draw in color
  349.         Resetting the current window’s pen to default values
  350.         Getting the current window’s pen settings
  351.         Setting the current window’s pen settings
  352.  
  353.   16  User Notification
  354.         Overview
  355.             Notifying the User
  356.         Define settings for notifying the user
  357.         Notifying the user that your application needs attention
  358.  
  359.   17  Dynamic Alerts
  360.         Overview
  361.             Icons
  362.             Text
  363.             Buttons
  364.             Function’s Value
  365.             Automatic User Notification
  366.             Alerts Samples
  367.         Displaying a Dynamic Alert
  368.             Custom Button Combinations
  369.         Changing button titles on Dynamic Alerts
  370.  
  371.   18  Miscellaneous Routines
  372.         Overview
  373.         Drawing an icon
  374.             Intelligent Icon Drawing
  375.             Icon Family
  376.             Icon Selection
  377.             Drawing the Icon, Selecting, Disabling, and Masking
  378.             Creating Your Own Icons
  379.         Set the default appearance for disabled icons
  380.             Default Appearance for Disabled Icons
  381.         Determining the System version
  382.         Play the System Error sound
  383.         Wait for a specified time
  384.         Drawing “Zoom Lines”
  385.         Drawing a standard Macintosh progress thermometer
  386.         Determining the minimum value of two numbers
  387.         Determining the maximum value of two numbers
  388.  
  389.   19  Other Macintosh Features
  390.         Overview
  391.             Alerts
  392.             Dialogs
  393.             Custom Controls
  394.             Lists
  395.  
  396.   20  Memory
  397.         Overview
  398.             Editing Fields
  399.             Measurements
  400.             Routines that consume heap space (by category)
  401.             Routines that consume heap space (alphabetic)
  402.             The Style Table
  403.             Good memory habits
  404.  
  405.   21  Font Heights
  406.         Font heights table
  407.  
  408.   22  Special Routines
  409.         Use these routines with caution, or don’t use them!
  410.  
  411.   23  Completing Your Application
  412.         Overview
  413.         Application’s Icons
  414.         Icon Family
  415.         File Types, Creators, and the Application Signature
  416.         Signature (the Creator code)
  417.         Bundle
  418.         Version
  419.         mstr Resources
  420.         SIZE Resource
  421.         Cloned SIZE resources
  422.  
  423.   24  Technical Support
  424.         What does Technical Support do?
  425.         What doesn’t Technical Support do?
  426.         Electronic Mail (E-mail) Support
  427.         Mail Support
  428.         Software Updates
  429.         Software Upgrades
  430.