The following is a behavior I made for use with the ActiveX Microsoft Forms
Dropdown control. It uses the method AddItem of the control to add items to
the dropdown menu. Now the problem is that the behavior works when I call it
on prepareframe, but when I call it on beginSprite then even tho the code
runs, it doesnt show the items in the list. Any guesses on that? It's
driving me nuts....

The behavior:-

property pItemsList

on beginSprite me
mInit me
end beginSprite me

on mInit me
vCurrSprite = me.spriteNum
vItemsCount = the number of items in pItemsList
repeat with i = 1 to vItemsCount
vCurrItem = item(i) of pItemsList
AddItem (sprite vCurrSprite, vCurrItem)
end repeat
end mInit me

on getPropertyDescriptionList me
Desc = []
addProp Desc, #pItemsList, [#default"", #format#string, #comment"Values to
display, separated by commas"]
return Desc
end getPropertyDescriptionList me

If you need it, I can email the full file to you. Contact me.....
TIA

Pranav aka [EMAIL PROTECTED]
Pranav aka [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