Re: ListGroup FirstItemPresented and LastItemPresented events

Andreas Kraft (kraft@fokus.gmd.de)
Mon, 9 Feb 1998 15:17:29 +0100 (MET)

Emmanuel,

On Fri, 6 Feb 1998, Emmanuel BEUQUE wrote:
> IMHO, the firstItem is not presented when the ListGroup is prepared and
> becomes presented when the Update behaviour is called at the end of the
> activation. Consequently, I would say the an FirstItemPresented event is
> generated with an TRUE eventData when the ListGroup is activated. Is this
> assumption correct ?

Yes.

> Now suppose a listGroup with 3 cells and 3 visibles in the tokenGroupItems
> attributes. At the beginning, you want the listGroup to have 5 items. It
> seems that the behaviour could be different if you add the items in the
> startup or in a scene IsRunning Link. If you use the startup, the ListGroup
> already has 5 items when it is activated. FirstItemPresented would be
> generated, but not LastItemPresented. If you use the IsRunning Link, then a
> LastItemPresented True would be generated when the ListGroup is activated
> and then a LastItemPresented False is generated when you add an item.
>
> Is all this correct ?

Yes, I think so.

> That way, we could add a third notes at the beginning of chapter 30 like
> this one :
>
> "3 The author should be aware of possible unexpected results if the
> ListGroup may have unused cell. It is his responsability to limit this case
> and to prevent the token to be held by an unused cell if it is not
> desirable."

This is an authoring advice. I think, this is a good soultion.

Andreas

--
  o  _     Andreas Kraft
 (\_|_)      GMD FOKUS, kraft@fokus.gmd.de, +49 30 3463-7232
 T> ] [        The sky is the limit