Text Length

Discussion and feedback on Construct 2

Post » Sat Aug 03, 2013 9:39 am

Hi
I'm looking for the same trick but link to capx file is dead...

It's really strange that textbox object in C2 haven't an option like MAXLENGTH by defaut
B
12
S
2
Posts: 60
Reputation: 1,592

Post » Sat Aug 03, 2013 2:11 pm

link works - just downloaded it now.

Edit: Wow, just what I wanted - super cool thank you
DUTOIT2013-08-03 14:12:44
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
61
S
16
G
9
Posts: 1,429
Reputation: 12,474

Post » Sat Feb 15, 2014 9:57 pm

This almost works like I wanted it to. The "problem" is this:

1. Type text until box is full
2. Move cursor to the middle of the text
3. Type one character

Result: character is added in the middle of the string, last character of the string is deleted
Expected: should not be able to type that character in the middle.

I believe I'll manage to make it work by using some instance variable to store the "last known good" string, but I think a "MAXLENGTH" property would be great to have on text boxes.
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Post » Sat Feb 15, 2014 10:20 pm

Yeap, it worked (CAPX). I still think we should have a maxlength
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Psychokiller1888 and 17 guests