Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Posts
    4

    how to: make each combobox item has his own script

    hi everyone
    i tried to make diffrent action for each item in the combobox
    but i found that the action works for all items
    need help plz

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    You could store some data in the combobox that's specific to the entry and call a function with that information.

  3. #3
    Join Date
    Jul 2004
    Location
    Denmark
    Posts
    336
    Quote Originally Posted by Tek View Post
    You could store some data in the combobox that's specific to the entry and call a function with that information.
    yes,

    Use the data field to store a function call for eatch item in the combobox

    that is actually a were need idea.

    I think that you can actually use the data filed to hold small scripts, think there is an exampel somewhere on this forum that shows how to use a combobox as a menu, just can't find it, but I'm sure I've seen it somewhere...

    cheers,
    Jonas

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    You could store each's item function in the data field as suggested.
    In this case, add this to the On Select script of the combobox:

    Code:
    loadstring(ComboBox.GetItemData(this, ComboBox.GetSelected(this))
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Script: Make Zip From Dialogs
    By RizlaUK in forum AutoPlay Media Studio 7.5 Examples
    Replies: 0
    Last Post: 03-15-2007, 06:25 PM
  2. how make each item in listbox go to different url
    By superman12345 in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 07-05-2006, 01:20 AM
  3. Check if Item exist in ComboBox from page2
    By fossil in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 01-07-2006, 08:10 AM
  4. Help for run select item in ComboBox
    By BaUDi0 in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 01-06-2005, 11:45 AM
  5. How can I know the FS Command name of a movie???
    By yoske in forum AutoPlay Media Studio 5.0
    Replies: 27
    Last Post: 01-01-2005, 10:39 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