Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Gravitational Force
FreePPP Control
Check valid date
Wait for X seconds, go to marker
Clip Copier
Hybrid CD
FreeRegEdit
USBXtra
Dryclean
SetMouseXtra
 

 

 

Behavior Populate MS Combo Box ActiveX

Added on 6/7/1999

 

Compatibilities:
behavior D7 D8 PC

This item has not yet been rated

Author: MediaMacros (website)

This will populate a MS combo box activeX member with the list you specify. (Separate with ; and no spaces) To get the current value call sprite(x).text

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

property startText, choiceList, whatDo, spriteNum

on getPropertyDescriptionList me
  return [#startText : [#format : #string, #default : "DefaultText", #comment : "Default text in drop-box."], #choiceList : [#format : #string, #comment : "List of choices separated by (;)", #default : "Choice 1;Choice 2;Choice 3"]]
end

on beginSprite me
  the itemDelimiter = ";"
  repeat with x = 1 to choiceList.item.count
    addItem(sprite spriteNum, choiceList.item[x])
  end repeat
  (sprite spriteNum).text = startText
end

on getBehaviorDescription me
  describe = "Combo box startUp script.  Requires the MS Forms Combo Box Active X." & return & "Drop this behavior on a Microsoft ComboBox ActiveX sprite.  This will build and populate the dropdown list.  To retrieve the property just get the text of sprite X property for the ActiveX Sprite."
  return describe
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail