- description
- setText does set the text of a textfield, but will not broadcast its
value. use setText to force the textfield to change its text. you can
call setText any time, nevertheless when autoClear is set to true (which
is the default), it will NOT work when called from within controlEvent or
within a method that has been identified by ControlP5 to forward messages
to, when return has been pressed to confirm a textfield.
use
setAutoClear(false) to enable setText to be executed for the above case.
use yourTextfield.isAutoClear() to check if autoClear is true or false.
setText replaces the current/latest content of a textfield but does NOT
overwrite the content. when scrolling through the list of textlines (use
key up and down), the previous content that has been replaced will be put
back into place again - since it has not been confirmed with return.