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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!nih-csl!FAXCSL!FIXER
  3. From: fixer@faxcsl.dcrt.nih.gov (Chris Clinging Desperately Tate)
  4. Subject: LAddRow() returns zero?
  5. Message-ID: <1993Jan12.173715.15171@alw.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Reply-To: fixer@faxcsl.dcrt.nih.gov
  8. Organization: Computer Systems Laboratory, DCRT, NIH
  9. Date: Tue, 12 Jan 1993 17:37:15 GMT
  10. Lines: 25
  11.  
  12. I'm trying to build a single-column list in a modal dialog, but am having
  13. little success.  LNew() seems to work fine; I use (0,0)(1,0) for dataBounds,
  14. and get a valid handle back.
  15.  
  16. However, LAddRow() is consistently returning 0.  I'm calling it with something
  17. like:
  18.  
  19.      short       i;
  20.      ListHandle  listH;
  21.      ...
  22.      i = LAddRow(1, (**listH).dataBounds.bottom + 1, listH);
  23.  
  24. (**listH).dataBounds.bottom is being duly incremented by this call, but the
  25. return value is always zero.  The same thing happens if I use a large constant
  26. such as 9999 instead of (**listH).dataBounds.bottom + 1 to force an
  27. out-of-bounds row number, so I don't think that's a problem.
  28.  
  29. Anybody have any ideas what's going wrong?  I suspect I'll be kicking myself
  30. soon, but at present I'm well and truly stumped.
  31.  
  32. ------------------------------------------------------------------------------
  33. Christopher Tate             | Return of the CryptoSig (tm):
  34. Management Systems Designers |    LR KMBVALMH ZKM HD CNDMH, LV CLYY.  LR
  35.                              |    MDVALMH AKT HDMU CNDMH, BDX'QU DQUNYDDEUJ
  36. fixer@faxcsl.dcrt.nih.gov    |    TDIUVALMH.
  37.