wildfire@aix01.aix.rpi.edu (Douglas B Rusch) (05/30/91)
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 .