Trouble with the combobox :-(

This forum is currently in read-only mode.
  • I'm just trying to do something simple with the combobox, but this is my first time using it in Construct Classic and I'm not sure which way to go.

    1. I want to be able to double-click on a name:

    <img src="http://farm9.staticflickr.com/8522/8472888322_0876be6a45_m.jpg" border="0" />

    and upon doing that the program would jump to a new layout.

    2. Make the combobox searchable by letter of a last name. Currently, it works but not always, sometimes it doesn't respond.

    3. Type at least three letters in a separate box and make the combobox go to the person's last name that matches those first three letters:

    <img src="http://farm9.staticflickr.com/8235/8472903548_e9a63795f6_m.jpg" border="0" />

    EDIT: Actually, this will probably need to be done with the Listbox object since the combobox doesn't have a vertical scrollbar function, which I need because I'm trying to add a lot of names...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Any help will be greatly appreciated! :-)

  • Numerous people say that the combobox is buggy and that you should stay away from it. I'm not familiar with Listbox objects. Sorry I can't be of help.

  • tuna, Thanks!

  • Anyone have any ideas?

    I checked the actions and couldn't find anything that would allow me to do this with the listbox, but I'm confused because without being able to have selection action with the listbox that recognizes what name you click and then jumps to a layout or changes a parameter, it seems like it would be virtually non-functional...? Am I trying to do something it just won't do?

    I'm really confused :-(

  • Looks like all I had to do was:

    On Listbox double-clicked...

    Compare values:

    Value 1

    ListBox.LineText(ListBox.SelectedLine)

    Equal to

    Value 2

    The text of the line I'm clicking

    ... Then attach an action like "Go to layout"

    Or, put the exact Construct way:

    + ListBox: Double clicked

    + System: ListBox.LineText(ListBox.SelectedLine) Equal to "My, Text"

    -> System: Go to layout 2

    Works.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)