Newsgroups: comp.sys.mac.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!wildfire From: wildfire@aix01.aix.rpi.edu (Douglas B Rusch) Subject: Question About ListMgr Message-ID: <44mh81a@rpi.edu> Summary: Cant get user defined list to work. Keywords: listmgr Nntp-Posting-Host: aix01srv.aix.rpi.edu Organization: Rensselaer Polytechnic Institute, Troy NY Distribution: usa Date: 30 May 91 02:17:19 GMT Lines: 44 I've been trying to learn how to use the ListMgr recently. I started with a bare bones Think C program (4.05) that just opens a dialog and initializes a list. It works with the default LDEF (number 0), highlighting the cells as I click on them. But with I wrote my own LDEF using Think C, and put it into my resource file, I can't get anything to appear on the screen. This is my LDEF : pascal void main(lMessage,lSelect,lRect,lCell,lDataOffset,lDataLen,lHandle) int lMessage; Boolean lSelect; Rect *lRect; Cell lCell; int lDataOffset; int lDataLen; ListHandle lHandle; { GrafPtr savePort; RememberA0(); SetUpA4(); switch (lMessage) { case lInitMsg : break; case lDrawMsg : EraseRect(&lRect); break; case lHiliteMsg : InvertRect(&lRect); break; case lCloseMsg : break; }; /* End Switch (lMessage) */ RestoreA4(); } I build the LDEF as stated in the Think C Manual. Now, after pouring over the IM IV manual, I still have no idea whats going on. Also, once I build the LDEF, I use ResEdit to copy it into my applications rsrc. Any help or sample code would be appreciated. Wildfire@aix.rpi.edu .