home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-22 | 7.0 KB | 175 lines | [TEXT/CWIE] |
- /*******************************************************************************\
- | |
- | HToggleRadioButton ©1996-1997 John C. Daub. All rights reserved. |
- | |
- | John C. Daub <mailto:hsoi@eden.com> |
- | <http://www.eden.com/~hsoi/> <http://www.eden.com/~hsoi/prog.html> |
- | |
- \*******************************************************************************/
-
-
- ----------==========<<<<<<<<<< IMPORTANT NOTE >>>>>>>>>>==========----------
-
- This class used to be known as "LToggleRadioButton" (class_ID 'tgbt'). This
- was bad form (PowerPlant/Metrowerks reserves all lower case class_ID's and
- using "L" as the class name prefix just gets confusing), but there was good
- reasoning back when it was written.
-
- To clean up any conflicts, the class has been renamed HToggleRadioButton and
- given the class_ID of 'Htgb'. If you have any existing code based upon
- LToggleRadioButton, you will need to update your PPob's and your code to
- use this new convention. I apologize for any inconvenience this necessary
- transition may cause.
-
- ----------==========<<<<<<<<<< IMPORTANT NOTE >>>>>>>>>>==========----------
-
-
- DESCRIPTION
- ```````````
-
- This class (derived from the PowerPlant™ class, LToggleButton) attempts to
- give the LToggleButton class a radio-button-like behavior (i.e. you can
- create a radio group that includes objects of this type and only one member
- of that group will be "on" at a time).
-
- You can have in the same radio group both these HToggleRadioButton's and
- LStdRadioButtons (or any other radio button class)...click on a radio,
- the toggles will all be off. Click on a toggle, the radios will all be off.
- I don't know what this will do for bad interface guidelines, but just use
- good judgment, I guess, in creating a user interface with this.
-
- Basic philosophy with this was to, of course, reuse the LToggleButton class's
- functionality as much as possible (note there are only a few functions).
- Of what there are, I tried to mix the existing functionality that was in the
- equivalent LToggleButton method with the functionality that is in the
- LStdRadioButton class.
-
- Includes a CTYP resource for ease of editing in Constructor 2.4 and higher
- (sorry, no CPPb resource is available, but all you need to do is create a
- LToggleButton object and change it's class ID to 'Htgb').
-
-
- CREDITS
- ```````
-
- Thanx to the users that desired this functionality in the first place...that's
- why I wrote it (to answer the call!). And also thanx to the people that do
- use it and recommend it to others (I've seen you!). It's good to know stuff
- you've done helps others in some way.
-
-
- DISCLAIMER
- ``````````
-
- This is NOT a product of Metrowerks Corporation. Please do NOT contact Metrowerks
- for help/support of this class/code. If you need support, please use the contact
- information given below.
-
-
- LICENSING AND USAGE AGREEMENT
- `````````````````````````````
-
- John C. Daub grants you, and you accept, a nonexclusive, nontransferable license
- to distribute this code for you within your programs and projects. You may
- distribute this code in object code form only and only on magnetic diskettes,
- CD-ROM, or other media with your programs into which this code has been
- incorporated (if you need to distribute your program by some other medium, please
- contact the author). You agree that this license gives you no title nor rights
- of ownership in, of, and/or to this code, and acknowledge that this code
- is property of John C. Daub. This code is NOT in the public domain.
-
- Permission is granted to the following organizations to distribute this
- code on their CD-ROM collections:
-
- Pacific HiTech, Inc - Info-Mac CD-ROM
- Celestin Company - Apprentice CD
- Meterowerks Corporation - CodeWarrior
-
- If you and/or your organization wishes to distribute this code and are
- not explicitly listed above, please contact John C. Daub.
-
- You may modify the source code, compile it, and incorporate the resulting object
- code into your programs. If you modify the code, you cannot redistribute the
- modified code under the same class/code name. Furthermore, to prevent any
- problems and/or infringements, please contact the author prior to redistribution
- of any modified code.
-
- John C. Daub licenses this code to you on an "AS IS" basis. John C. Daub makes
- no warranties, neither expressed nor implied, regarding this code, its
- merchantability, nor its fitness for any purpose. John C. Daub agrees to make a
- reasonable effort to provide written or verbal corrections for any problems
- that might be found in this code.
-
- Use of this code must be credited in an appropriate manner and location (such
- as printed or online documentation and/or About boxes) with the following
- credit line:
-
- HToggleRadioButton ©1996-1997 John C. Daub. All rights reserved.
-
- If this license is too restrictive with the current law in your state or country,
- you should not use this code at all. Furthermore, if you personally find this
- agreement too restrictive or not to your satisfaction, you should not use this
- code at all.
-
-
- FUTURE
- ``````
-
- - I haven't heard of any problems with the class since it's inception, so
- there doesn't seem to be anything to fix.
-
- - The class seems to be pretty stable and functionally complete, so I also
- don't see any needs for additions.
-
- - I'll just be working to ensure that the class continues to function with
- future releases of PowerPlant.
-
-
- CONTACT INFORMATION
- ```````````````````
-
- Even though you don't need to send me email or register or anything to
- use the code, it would still be nice to drop me a line and let me know
- what you think. If you find any bugs or add any cool features, send them
- to me so I can add it to the official distribution. Furthermore, if I
- have your contact information, I can notify you when new versions are
- released -- can be very handy if say there is a fatal crashing bug
- in the code or some such. So, it's probably in your own best interest
- to drop me a line :-)
-
- Also, be sure to visit my web site
-
- <http://www.eden.com/~hsoi/prog.html>
-
- and "register". I won't know if you're "registered" or not, but it's a nice
- way that you can be notified of product updates (e.g. I make a new
- version, post it on that page, if you're registered, you'll be emailed
- automatically that the page changed).
-
- John C. Daub
- <mailto:hsoi@eden.com>
- <http://www.eden.com/~hsoi/prog.html>
-
-
- CHANGE HISTORY
- ``````````````
-
- Date Vers Who Notes
- ----------------------------------------------------------------------------
- 29 Jul 96 1.0 JCD - Created file
-
- 20 Jan 97 1.1 JCD - Cleaned the code up some
- - Cleaned the cosmetics of the files up
- - Redid the distribution package (created this README,
- restructured the folder layout, clarified the
- copyright information, etc.)
- - Created CTYP
-
- 22 Jun 97 1.2 JCD - Renamed to HToggleRadioButton and new class_ID from
- 'tgbt' to 'Htgb'
- - Updated sources, CTYP, and demo to match new names.
- - CreateToggleRadioButtonStream renamed to the simpler
- CreateFromStream.
- - Created copy ctor and assignment operator (private)
- - Cleaned up source cosmetics to improve readability
- - Upgraded to CW Pro1.