Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
GkSetup
Resolution Xtra 2.0
Multi-State Toggle Button
Text Outliner
Director 8 Demystified
ADOxtra for Shockwave Multiuser Server
Toggle ButtonsEnabled Property of a Flash Sprite
Drag and Switch
Direct Media Balance Slider
Amara Flash Menu and Flash Button Maker
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail