Jim Williams <[EMAIL PROTECTED]>
> I'm having a problem with the pop-down menu behaviour that comes with
> director.  I have made a few amendments to it but the main mechanics
> of it remain the same.  I also have a script on the prepareframe of
> the frame that it occurs which changes the size of the field cast
> member,
>
> member("drop").rect = rect(0,0,gright, gbottom)
>
> This displays it on screen at the correct size, however when the user
> clicks on it, it opens the list at the original size rather than the
> amended size.

Hi Jim,

The size of the field sprite is determined in the "on SetDimensions me"
handler, and stored in the properties myOpenRect and myClosedRect.

The standard behavior works like this:
  When the menu is closed, the sprite should be the width that is
  defined is in the Score: to change the closed width, you simply need
  to change the width of the sprite on the Stage.

  When the menu is open, the field sprite should be as wide as it is in
  the Score, or as wide as the longest line of text, whichever is the
  greater.

You might also like to look at the Linked Director Movie which acts as a
Windows-style drop down menu, complete with an auto-typing feature.
There is a demo plus notes at...

>>          http://perso.planetb.fr/newton/linked/droplist/

Open HostMovie.dir to see the drop-down list in action.

Cheers,

James


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to