[comp.sys.mac.programmer] The list manager in a modal dialog.

deweese@sunshine.Kodak.COM (Thomas Deweese) (06/27/91)

  The heading says it all.  But my real problem is a little more
specific.  I have set up a modal dialog with an active User_Item.

I get the modal dialog, set things value, init the List, all goes well.

Where I get into trouble is when I try to handle double clicks.

(this is THINK C)

  ModalDialog(NULL,&item)
  switch(item)
    {
      .
      .
      .
      case 15:   /*my user item*/
        SetPort(myDlog);
        EventAvail(0,&theEvent);  /*so that it will set up modifier fields*/
        GlobalToLocal(&theEvent.where);
	if (LClick(theEvent.where,theEvent.modifiers,myList))
	   EditX();
      break;
    }

Now it sort of works but it ussually takes several clicks to
get it to register as a double click.  Why.  

Any help will be greatly appreciated.
Thomas DeWeese
deweese@kodak.com
grendel@rpi.edu