home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-06-12 | 2.6 KB | 78 lines | [TEXT/KAHL] |
- /**************************************************************************
-
- Square Button CDEF
- by Michael F. Kamprath
-
- Copyright © 1994 by Michael F. Kamprath
-
- Requirments:
- ============
-
- This CDEF can only be used with system 6.0 or later.
- For it to be color, requires 32 Bit Quickdraw.
-
- Description
- ===========
-
- This a 3D square and gray push button CDEF. It is very easy to use and very
- customizable. You may specify the control title's text font, face, and size
- by appropiately setting the following control parameters AT CONTROL
- INITIALIZATION:
-
- Control Maximum: Text Font (the font's system ID number)
- Control Minimum: Text Size
- Control Value: Text Face (remeber, "Style" is a byte, so don't
- make this value great than 255)
-
- After the control is initialized, these parameters will be set to these values:
-
- Control Maximum: 1
- Control Minimum: 0
- Control Value: 0
-
- The control title will be centered in the control rectangle. Please be aware that
- you must have a different CDEF resource for each variation you want on the
- control's type face. Initializing a control will set the type face for all
- controls already defined with that particular CDEF rescource. If you think
- about it, this could be a useful feature.
-
- The "top" of the button is actually a rectangle that is inset by 2 pixels from
- the control rectangle, so be sure to allow enough room for the font you choose.
-
- The button can exist in both an "up" (control value = 0) and "down" (control
- value = 1) state, plus has a seperate appearance for an inactive state
- (control hilite = 255).
-
-
- Shareware Info:
- ===============
-
- If you use this CDEF for personal use, all I ask is that you send me a note
- and maybe a copy of the program you use it in.
-
- If you use this CDEF for somethiong that you later charge money for (like
- your own shareware software or commercial software), the price for it's use
- is a one time payment of $5 and maybe a copy of your program. If you don't
- wish to give me a free copy of your program, I understand (after all, I'm
- asking for money).
-
- If you wish for the source code to this CDEF, I will send it to you when you
- send your shareware payment ($5). This will cover the cost of a disk and postage.
-
- Please make all payments in U.S. funds.
-
- You may contact me by:
-
- e-mail: kamprath@aol.com
-
- postal mail: Michael F. Kamprath
- 524 Avenue C
- Redondo Beach, CA 90277
-
- Legal Stuff
- ===========
-
- I provide no warranty, written or implied, nor do I accept any responsibility
- for damages inflicted, real or imagined, by the use of this CDEF.
-
- *******************************************************************************/