I am having a problem creating a PopupList that places
data to a field. 

What I have is: 
PopupTrigger trgTest
PopupList - lstTest
Field - fldTest

The way I want it to work is: The user can enter data
into the field directly OR The user can tap the trigger
and cause the PopupList to display a list of previously
entered (unique) Field data.

But my problem is that I cannot get a lstSelectEvent
to be generated unless the 'useable' attribute is set
to TRUE.  But that makes the list visible all the time.
Page 117 Part 1 says a lstSelectEvent should be generated.

What am I missing?

I did get it working using popSelectEvent as below:

case popSelectEvent:
if(event->data.popSelect.listID == lstTest)
{
  FormPtr fp;
  ListPtr lp;

  fp=GetActiveForm();
  lp=FrmGetObjectPtr(fp, FrmGetObjectIndex(fp, lstTest));
  MyFldSetText(fldTest, lstGetSelectionText(lp, LstGetSelection(lp));
  handled=1;
}

Where MyFldSetText just writes string to field.

Is there a better way, that I might be missing on doing what I want?

Also where does one find details of all the event structures for
the various events?  could not find them in the docs.  maybe I missed
them.

Thanks

----------------------------------------------------
Shoot-to-Win

Protect the 2nd Amendment
----------------------------------------------------

Reply via email to