Trouble with the combobox :-(

For questions about using Classic.

Post » Thu Feb 14, 2013 4:42 am

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:



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:



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...MrMiller2013-02-14 05:21:14
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Thu Feb 14, 2013 4:42 am

Any help will be greatly appreciated! :-)
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Thu Feb 14, 2013 7:24 pm

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.
B
10
S
3
G
1
Posts: 103
Reputation: 1,390

Post » Fri Feb 15, 2013 12:47 pm

@Tuna, Thanks!
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Fri Feb 15, 2013 1:07 pm

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 :-(
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Sun Feb 17, 2013 10:55 pm

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.MrMiller2013-02-17 22:57:47
B
12
S
4
G
3
Posts: 426
Reputation: 2,458


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests