1 registered members (SBGuy),
712
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Is it possible to enter the user's response in a text box?
#483939
08/16/21 11:49
08/16/21 11:49
|
Joined: Jan 2012
Posts: 108
gamers
OP
Member
|
OP
Member
Joined: Jan 2012
Posts: 108
|
Hi Dear Developers, Is it possible to enter the user's response in a text box and automatically reduce the text to a bottom line according to the size of the text box? For example, let's have a text box field as in Figure-1 and the user is required to enter a response in this field. Figure-1 As seen in Figure 2, when the user starts to enter the response, the text goes out of the text box area. Figure-2 Actually I want the desired output to be like in Figure 3. How can I do that? Figure-3
|
|
|
Re: Is it possible to enter the user's response in a text box?
[Re: gamers]
#483963
08/18/21 14:58
08/18/21 14:58
|
Joined: Jan 2012
Posts: 108
gamers
OP
Member
|
OP
Member
Joined: Jan 2012
Posts: 108
|
Please could you help me?
Last edited by gamers; 08/20/21 09:52.
|
|
|
Re: Is it possible to enter the user's response in a text box?
[Re: gamers]
#484119
09/10/21 06:58
09/10/21 06:58
|
Joined: Jan 2012
Posts: 108
gamers
OP
Member
|
OP
Member
Joined: Jan 2012
Posts: 108
|
|
|
|
Re: Is it possible to enter the user's response in a text box?
[Re: gamers]
#484129
09/12/21 10:17
09/12/21 10:17
|
Joined: Sep 2009
Posts: 993 Budapest
Aku_Aku
User
|
User
Joined: Sep 2009
Posts: 993
Budapest
|
OK I understand you. You know there are two types of reading in text from keyboard: inkey and inchar. I think the second way should choose for your case, that reads only one character at once. The base of this case, you must to know how wide is one character in your character set. That defines how many character fit into one line, assumed the set isn't proportional type. So, with inchar you know when the width of typed in chars summed up is equal your line width. Then you open a new line. I made kind of this computing in the past but not for type in text but for write out text, so I think it should work.
As an alternate solution you can try propose of 3run with WRAP, maybe that should work too.
Last edited by Aku_Aku; 09/12/21 10:19.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|