Copyright ⌐1988-1991 by John Cavallino. All Rights Reserved
Thumbwheel: implements those up-down arrows used for dialing in various values (see time&date in the General control panel)
-standard dimensions: HxW=18x11, but will scale to the specified rect.
-CDEF resource ID: 129
-procID is 2064 --there are no variations
-partCodes: inUpButton, inDownButton
-Notes: use it just as you would a standard push button (i.e. _SetCtlValue makes no sense).
OnOffSwitch: implements a checkBox-like toggle, similar to the one used to turn on the alarm in the Alarm Clock desk accessory.
-standard dimensions: HxW=13x8, but will scale to the specified rect.
-CDEF resource ID: 130
-procID is 2080 --there are no variations
-partCode: inCheckBox
-Notes: use it just as you would a regular check-box.
TriStateButton: implements a three-state check box, like those used by Microsoft products and by MPW's Commando.
-Variation code usage:
--variation code bit 0 is clear: draw in Microsoft style:
value=0-> empty box
value=1-> box with an "X"
value=2-> gray-filled box
--variation code bit 0 is set: draw in MPW Commando style:
value=0-> empty diamond
value=1-> solid-filled diamond
value=2-> gray-filled diamond
--variation code bit 3 is clear: draw title in the system font
--variation code bit 3 is set: draw title in window's current font
--bits 1 and 2 are ignored
-CDEF resource ID: 131
-procID summary:
2096-- Microsoft style, title drawn in system font
2097-- MPW style, title drawn in system font
2104-- Microsoft style, title drawn in the window's font
2105-- MPW style, title drawn in the window's font
-Notes: use much as you would a standard check-box.
General notes:
All defProcs are compatible with Color Quickdraw and will draw in the correct part colors.
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.
I also have a popup menu control and a proportional-thumb scrollbar, but they aren't ready to give out.