Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    47

    Huh? Populating ComboBox Plugin

    Hi Guys...I'm trying to populate a combobox based on how many images are in a directory....

    --Populate a table with jpg files from the Image directory and count their numbers
    tbl_path = File.Find("AutoPlay\\Images\\PowerPoint\\", "*.jpg", false, false, nil, nil);
    img_nbr = Table.Count(tbl_path);

    ComboBox.SetUpdate("Plugin2", false);
    for i = 1, img_nbr do
    ComboBox.AddItem ("Plugin2", "Slide "..img_nbr,"");
    end
    ComboBox.SetUpdate("Plugin2", true);



    In this case I have 24 images in the directory...trouble is it just repeats slide 24.....24 times in the combo box....I want it to update the combo box with slide1 to slide24 ?

    Any ideas on what I'm doing wrong?

    Thanks a lot for any help

    Octane

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Try this.

    Code:
    ComboBox.SetUpdate("Plugin2", false);
    for i = 1, img_nbr do
    ComboBox.AddItem ("Plugin2", "Slide "..i,"");
    end
    ComboBox.SetUpdate("Plugin2", true);
    Dermot

  3. #3
    Join Date
    Feb 2004
    Posts
    47
    Thanks Dermot! It worked great!

Similar Threads

  1. ComboBox Plugin not in Insert Menu
    By ChatNoir in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 03-21-2005, 09:04 AM
  2. ComboBox plugin functionality.
    By longedge in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-20-2004, 03:37 PM
  3. Combobox plugin and Winbutton plug Help
    By SUF6NEWBIE in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 04-22-2004, 10:10 PM
  4. Spotlight: ComboBox Object Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-02-2004, 01:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts