home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!newshost.LaTech.edu!kevinb
- From: kevinb@engr.LaTech.edu (Kevin P. Brunner)
- Subject: Help for a new programmer (CDEF's & Debuging Resource Code)
- Message-ID: <1993Jan6.045539.29232@engr.LaTech.edu>
- Summary: Would like to see some code for a home-grown Slider/Scrollbar Control
- Keywords: CDEF,Debug,Controls,Resource
- Sender: usenet@engr.LaTech.edu
- Nntp-Posting-Host: orion
- Organization: Louisiana Tech University
- X-Newsreader: TIN [version 1.1 PL8]
- Date: Wed, 6 Jan 1993 04:55:39 GMT
- Lines: 23
-
- I've been working on the mac for the last 6 months, recently converted from
- ibm p.c. I'm getting my feet wet with controls and resources. I have been
- able to create small apps with standard mac stuff, but would like to design
- my own controls. Inside Macintosh does a lot for stating generalities...
- "you need this, and one of these, and, oh!, one of these too..." but no
- specific examples in this case.
-
- So I've tried creating a CDEF which responds only to the draw message and
- returns zero (0) for everything else. It responds, but draws something
- completely different than what the code says. The code inverts a block
- of pixels in a window (it works when called from the "main" block of code,
- but not when the resource is compiled seperately -- I get a rounded box!)
-
- Has anyone written custom controls? If so, do you mind sharing a portion
- of your code and development technique? Also, any help on using Think C
- to debug resources would be appreciated. I have most of the Inside Mac's and
- both Programming the Macintosh's (vol 1 and 2) I have looked elsewhere but
- have found nothing with coding examples or techniques. Book or Article
- references would be appreciated as well.
-
- Thanks in advance!
-
- kevinb@engr.latech.edu
-