home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20762 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.8 KB  |  38 lines

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