Hi,
I don't know if this is the 'correct' solution, but I found that changing
the order I created the list and the trigger works. I always create the
trigger first, and then the list it references. Are you handling the
ctlSelectEvent (ie handled==true)? The would cause the problem too.
-Jason
On Fri, 5 Nov 1999, Gordon, Douglas wrote:
> Using V1.1 and/or V1.2 of the Constructor (as came with CW Lite R5 & R6), I
> can't seem to get a popup trigger to work. It appears to create the
> resource, and it does show up on the screen, but when tapped it does not
> show the associated list (whose list ID is entered in the Constructor
> properties sheet for the trigger).
>
> In the program, tapping the popup sends a ctlSelectEvent with the correct
> object ID (controlID). However, if my event handler then looks at the event
> structure, the various fields associated with a popSelect are not correct.
> popSelect.selection (which should have the list selection index) is always
> 1, as though it were being handled as a simple button, and the
> popSelect.listID value is not set correctly (not what I set it to in the
> Constructor).
>
> Is this a Constructor problem or a programming problem of some sort? My
> workaround could be to just display the list and get the selection myself
> when the popup is tapped, but I thought that it should work automatically.
>
> Doug Gordon
>