No announcement yet.


  • Filter
  • Time
  • Show
Clear All
new posts

  • listbox

    hello I'm very very new at autoplay so sorry maybe there are some stupid questions from me [img]/ubbthreads/images/icons/wink.gif[/img]

    I have made a listbox and instert some items, now I want the following:
    when you select one of the items, it must show a picture and text on the other side of the listbox, little photo and explaination.
    then when you click on install it must ask where you want to install it and the install the selected item.

    who knows how to do this?

  • #2
    Re: listbox

    Sure, there are a couple ways you could do this...
    A simple way to do this, would be to store the program name as data with the items in the listbox.
    To do this, insert an item into the listbox like this
    Only the item part will show in the listbox. You can then use the actions get selected, and get item data to get the item data, which could be the text you want to display.
    Overlap and hide the images you want to be shown.
    You could then have an if statement that says something along the lines of
    If %itemdata%=Corel
    You would most likely want to put these actions into the listbox's on selection changed actions.
    something like that.

    Or, do basically the same thing, but just get the selected item text, and have if statements dependent on that variable.
    Either way, same result.

    Good luck! [img]/ubbthreads/images/icons/smile.gif[/img]

    P.S. You could also put the actions you are planning to put into the install button on the double click actions of your listbox. Have Fun! [img]/ubbthreads/images/icons/smile.gif[/img]


    • #3
      Re: listbox

      Addon to my last note:
      As for the getting info asking where to install,
      use the get information dialog box to get the path to where they want to install. For ease of use, you could have a browse button, which uses the dialog folder browse action.
      This would make it easy for your user to go to the folder to install under.
      To install, that's up to you. If you are using an installer, you don't need to get this info.
      If you aren't, and are simply copying files, use the file copy action. Dont forget to create destination folders first, or it wont work.