The TextEntryButton is technically writing the string to a Text field inside the button. Look in the control.inputs.js file. The TextEntryButton _createContent method has the following code which creates the text object:
CODE
this.valueDisplay = new KONtx.element.Text({
id: baseID+'.valueDisplay',
styles: vsts
}).appendTo(this);
However, since this is only intended to span one line there are no height or wrap properties defined for the themes of this text field.
To better answer you question, how were you planning on allowing more characters? Did you plan on having the text box span multiple lines? Or slide to the left when it reaches the end? Etc?
Thanks for your reply.
What I use at moment is the KONtx.dialogs.TextEntry. I click a TextButton, it show a TextEntryDialogs, in which I can input some string. When I click OK Button, I show the string I have input in a Text I want. As there is a limitation on the characters with dialogs.TextEntry, I want to create my own component almost the same as dialogs.TextEntry or TextEntryButton(the combination maybe).
What I want is:
- click a TextButton, it shows the component just like the TextEntryButton do.
- input something in this component. when I click OK button, it will get the string I have input and show the string in a Text I want.
To allow more characters, either solution will be ok.
Else, I have test the sample code you provided. It works very well. The only problem is I don't know how to close the Keyboard when I finish input.
Hope you can help.
Many thanks in advance.