jmk  kindly wrote:
>hi,
>
>i would like to make a dropdownlist in director 7 (windows).
>
>there is a behavior in the library window which converts a textfield
>into a dropdown list.
>
>in the propertys i set the "contens of list" to "current content of
>field" and the "purpose of list" to "execute".
>
>now i wrote handlers which are called when selecting a menu item...
>
>this workes pretty well BUT!!!!!!!
>
>i  can't have menu items which consist of more than one word separated
>with a space.
>
>because handlernames cant have spaces....
>
>is there a possibility to solve this problem?

For a *real* dropdown list you could use our OSControl Xtra. We just
released version 1.1 of it and it includes a very versatile dropdownList
control (and 11 other controls as well). It is also shockwave safe. You can
view examples of the xtra, right in your browser at
http://www.peghole.com/xtras/osc_xtra/examples/

For a solution to your Lingo problem you should probably edit the behavior
a little and just remove the spaces in the chosen string before you execute
the string asd a handler (probably done with the 'do' command). Here is a
mini handler that just does that

on stripSpaces me, inputString

  last = length(inputString)
  output = ""
  repeat with i = 1 to last
    if char i of inputString <> SPACE then output = output & char i of
inputString
  end repeat
  return output
end stripspaces

You use it like newstring = stripSpaces(me, oldString)

After you've added this script to the behavior you should just name your
handlers as the spaceless strings.
Good luck.

-- 
mare <[EMAIL PROTECTED]>

[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