home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / develope / controls.sit / README < prev    next >
Encoding:
Text File  |  1991-03-27  |  2.4 KB  |  57 lines

  1. JohnC's Handy Custom Controls
  2. Copyright ⌐1988-1991 by John Cavallino.  All Rights Reserved
  3.  
  4. Thumbwheel: implements those up-down arrows used for dialing in various values (see time&date in the General control panel)
  5. -standard dimensions: HxW=18x11, but will scale to the specified rect.
  6. -CDEF resource ID: 129
  7. -procID is 2064 --there are no variations
  8. -partCodes: inUpButton, inDownButton
  9. -Notes:  use it just as you would a standard push button (i.e. _SetCtlValue makes no sense).
  10.  
  11. OnOffSwitch: implements a checkBox-like toggle, similar to the one used to turn on the alarm in the Alarm Clock desk accessory.
  12. -standard dimensions: HxW=13x8, but will scale to the specified rect.
  13. -CDEF resource ID: 130
  14. -procID is 2080 --there are no variations
  15. -partCode: inCheckBox
  16. -Notes:  use it just as you would a regular check-box.
  17.  
  18. TriStateButton: implements a three-state check box, like those used by Microsoft products and by MPW's Commando.
  19. -Variation code usage:
  20.   --variation code bit 0 is clear: draw in Microsoft style:
  21.       value=0-> empty box
  22.       value=1-> box with an "X"
  23.       value=2-> gray-filled box
  24.   --variation code bit 0 is set: draw in MPW Commando style:
  25.       value=0-> empty diamond
  26.       value=1-> solid-filled diamond
  27.       value=2-> gray-filled diamond
  28.   --variation code bit 3 is clear: draw title in the system font
  29.   --variation code bit 3 is set: draw title in window's current font
  30.   --bits 1 and 2 are ignored
  31. -CDEF resource ID: 131
  32. -procID summary:
  33.       2096-- Microsoft style, title drawn in system font
  34.       2097-- MPW style, title drawn in system font
  35.       2104-- Microsoft style, title drawn in the window's font
  36.       2105-- MPW style, title drawn in the window's font
  37. -Notes:  use much as you would a standard check-box.
  38.  
  39. General notes:
  40. All defProcs are compatible with Color Quickdraw and will draw in the correct part colors.
  41. The tri-state checkbox (which is the only one that uses its title) is NOT Script Manager-compatible (it doesn't check for right-to-left text orientation before it draws the title).  I'll get around to fixing that someday.
  42.  
  43. I also have a popup menu control and a proportional-thumb scrollbar, but they aren't ready to give out.
  44.  
  45. Enjoy.
  46.  
  47.  
  48. Internet:    jcav@midway.uchicago.edu
  49. USMail:        John Cavallino
  50.                                 U. of Chicago Hospitals
  51.                                 5841 S. Maryland Avenue, Box 145
  52.                                 Chicago, IL 60637
  53. Tel:                    312-702-6900
  54.  
  55.  
  56. This file edited: 03/27/91
  57.