home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!elroy.jpl.nasa.gov!ames!agate!dog.ee.lbl.gov!network.ucsd.edu!ucsbcsl!mcl!scott
- From: scott@mcl.ucsb.edu (Scott Bronson)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: CDEF question
- Message-ID: <scott.714443466@mcl>
- Date: 22 Aug 92 00:31:06 GMT
- References: <1992Aug5.002604.10741@samba.oit.unc.edu> <1992Aug5.175619.4425@ctr.columbia.edu>
- Sender: root@ucsbcsl.ucsb.edu
- Lines: 31
-
- >>I am looking for a CDEF for the up/down arrow control that is used in
- >>the Color picker. ... (the control makes an integer step
- >>up and down in set increments.)
-
- >I don't think it's a CDEF. The PICT for the up/down arrow is in the
- >System as ID -5760. Just put the PICT in your dialog, and when somebody
- >clicks on it, compare the mouse down point with the PICT's rectangle to
- >see if they clicked on the top half or the bottom half, and then take the
- >appropriate action.
-
- Rather than using the system's PICT in your dialog (would you bet the
- future of your program on whether or not Apple is going to leave that
- PICT for all future systems--that's not a good bet) you should copy
- the PICT into your application's resource fork (it's small) and give
- it an ID greater than 127.
-
- This gives me a great idea for a CDEF: make a complete number entry
- control. Use TextEdit, and have the control make sure the number is
- valid. The value of the control is the number in the text box.
- Everything else is automatic. Should be relatively easy, too. I'd
- do it, but I have no need for one right now.
-
- >+------------------------------------+
- >| Bonus question: Which of these |
- >| two statements is correct? |
- >| A) Statement "B" is false. |
- >| B) Statement "A" is true. |
- >+------------------------------------+
-
- Bonus question II: Their are three errs in this sentence. Can you find them?
-
-