Just a couple of things to add to everything that's already been said on the
subject:

1. There's a shorter dot syntax alternative to the addProp function.
By using the syntax list[#prop] = "something" you can actually add new
properties to a property list, as well as setting new values to properties
that did exist. (the equivalent syntax: list.prop won't work with
non-existing properties, but this will)


2. The format can contain any data type that director can recognise,
including cast member types. If you want to get a popup list of all the cast
members in your movie you can use #format: #member. Something like #format:
#bitmap will narrow the popup down to bitmaps, #format: #sound to sounds
etc. #format: #marker will give you a popup of all the markers currently in
your score, #format: #cursor will give you a popup of available cursors, and
the list goes on and on. Have a look at the entry for
getPropertyDescriptionList in the lingo dictionary, that will give you an
idea of the data types that you can use, which is basically any data type
that director knows (in D8, try #color: in the property inspector's
attached-scripts tab you'll get a swatch. Pretty cool, isn't it?)



Try this out:

on getPropertyDescriptionList
gpdl =[:]

gpdl[#pString] = [#comment:"This is a string", #format:#string, #Default:
"Hello World")

gpdl[#pPopupString] = [#comment:"This is a string", #format:#string,
#Default: "", #range: ["Hello Earth", "Hello Moon", "Hello Sun"])

gpld[#pInteger] = [#comment:"This is an integer", #format:#integer,
#Default: 1)

gpld[#pBitmap] = [#comment:"This is a bitmap", #format:#bitmap, #Default:
"")

return gpdl

end

Regards,
Karina Steffens,
Lead Programmer

Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin

Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie






[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