Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3

Thread: Help ComboBox

  1. #1
    Join Date
    Apr 2008
    Location
    Algeria
    Posts
    6

    Help ComboBox

    Hi!!
    e.g:
    i have ComBobox:
    .Open PDF File
    .Jumpe to Page5
    .OpenURL

    When i select item 1, it open a pdf file.
    When i select item 2, it jump to page5.
    When i select item 3, it get an url.
    My english is not good. I hope you understanding!
    Thank you!
    Attached Files

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    when you post a project you need to export a ".apz" file, do this by going to the main menu, click file>>export and follow the instructions

    now, to your problem

    replace the code in your combobox "On Select" event with the below code

    Code:
    -- Get the selected index
    local selected = ComboBox.GetSelected("ComboBox1");
    -- Get the data of the selected entry
    local data = ComboBox.GetItemData("ComboBox1", selected);
    if selected == 1 then
    	-- open pdf
    	File.Open(data, "", SW_SHOWNORMAL);
    elseif selected == 2 then
    	-- jump page
    	Page.Jump(data);
    elseif selected == 3 then
    	-- visit website
    	File.OpenURL(data, SW_SHOWNORMAL);	
    end
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Apr 2008
    Location
    Algeria
    Posts
    6
    Thanks it works fine.

Similar Threads

  1. Serious ComboBox Issue
    By Dermot in forum AutoPlay Media Studio 7.5 Suggestions
    Replies: 5
    Last Post: 03-10-2008, 08:42 AM
  2. ComboBox Code ?
    By dragon3781 in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 09-24-2007, 02:53 AM
  3. Not understanding ComboBox very well
    By RodB in forum AutoPlay Media Studio 6.0
    Replies: 28
    Last Post: 04-16-2007, 09:00 AM
  4. ComboBox Reset
    By azmanar in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 12-29-2005, 12:46 PM
  5. ComboBox display current
    By pjhiggins in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 05-21-2004, 12:14 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