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