> Here is a solution for multiple selection in a GPDL. It requires that you
> work through the PI and not the dialog box but it should do the trick for
> you.
>
> www.manibus.com/codeSamples/dynamicGpdl.zip
>

Rob, I really liked your dynamicGpdl code sample, but I'm not sure how I
would handle 50 or 100 items in the list.  However, I could see writing some
really flexible behaviors with it!

Roymeo and Buzz, the method you suggested is on my short list, but it
requires constantly updating the properties as the list expand or contracts.
It could get really cumbersome when the list consists of 50 to 100 items.

Here is a solution I have worked out.  Not handled entirely in the GPDL and
still somewhat cumbersome.

* create a field member to use as a template.
* put each item in list as a separate line in a field member
* make a copy of the field member with a unique name
* color lines of new field member white for items NOT wanted in property
list
* get new field member in GPDL
* loop through each line add only lines that are black
* basic code sample below

---------------------------------------
on beginSprite me
    lMyList = []
    mField = member("field")
    nCount = mField.lineCount
    repeat with n = 1 to nCount
        sLine = mField.line[n]
        lColor = mField.line[n].color
        if lColor = color(0, 0, 0) then
            lMyList.add( sLine)
        end if
    end repeat
    put lMyList
end beginSprite
---------------------------------------

I'm testing creating a duplicate of the master field member within the GPDL
and adding it to the score.  Not quite done yet though.

Anymore suggestions or thoughts are welcome?

Anthony
www.lifelinestudios.com



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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