[comp.sys.mac.programmer] Help with List Manager

soe@ames.arc.nasa.gov (Brad Soe) (05/20/88)

Has anybody every used the list manager in AztecC V3.4. I am just
trying to create an easy list, and I want to be able to select a 
cell, and highlight it, but I can't seem to get it to work at all.
I have done the following:

Point 		pt;
EventRecord	event;
ListHandle 	list;
long		cell;

pt = event.where;
GlobalToLocal(&pt);
LClick(&pt, event.modifiers, list);
*((long *)(&cell)) = LLastClick(list);
LSetSelect(TRUE, *((long *)(&cell)), list);


The problem is that cell always returns v = -1, h = -1 from LLastClick(). 
This means that no mouse was clicked at all, but I only get here  
if the mouse is clicked. What is going on!! Note that the list is a useritem
in a dialog, is this a problem. Another problems is that I can 
only get highlighted cells to highlight when an update event has 
occured.  Is there away to highlight immediately?? If you have any 
examples in Aztec C. It would be helpful. 

Thanks 


Brad Soe 
internet : ames.arc.nasa.gov
NASA Ames Research Center 
MS 233-18 Moffett Field, CA 94035
(415) 694-4866