EditBox Object and ListBox

For questions about using Classic.

Post » Sat Feb 21, 2009 3:29 am


What would be close to these events? I just see "on Text change".

Also, how would this event look like in Construct?
Val(List Line Text$( "Query", LoopIndex("input.query")))
This the ListBox object
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Sat Feb 21, 2009 7:57 am

[quote="Azu":2gx9tj7l]
What would be close to these events? I just see "on Text change".[/quote:2gx9tj7l]

It appears that some conditions for the Edit Box are missing. You can still do this with a System compare. Create a new System condition, select Compare, double-click the Edit Box object and grab the Get Text expression (or just type in EditBox.Text, or whateverName.Text if you've changed the name of your edit box). The event would look like this:

[code:2gx9tj7l]
+System: EditBox.Text is greater than 0
-> Do stuff
[/code:2gx9tj7l]

You don't need a "text is a number" condition (and if fact there isn't one). But you do have to be careful because it's an alphanumeric comparison, so if someone enters letters into the edit box then it will automatically be a higher value than any number. If you want to keep the event from triggering when a letter is entered, you can set a number as a range limit by adding a "EditBox.Text is less than 9999" condition, for instance.

[quote="Azu":2gx9tj7l]Also, how would this event look like in Construct?
Val(List Line Text$( "Query", LoopIndex("input.query")))
This the ListBox object[/quote:2gx9tj7l]

That doesn't appear to be similar to an event structure. It looks more like an expression to me. What are you trying to do?
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Feb 21, 2009 11:38 am

I suggest you read through some tutorials and try to grasp how Construct works, rather than asking how individual expressions will look. That'll take quite some time :). Also, many expressions don't have equals as our event system works in a different way.

I've added 'compare text' to the Edit object for the next build.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests