rezaali / ofxUI

[DEPRECATED] UI Addon for openFrameworks
http://www.syedrezaali.com/#/ofxui-project-showcase/
518 stars 202 forks source link

UITextInput clearing label for int input #235

Open tomsf opened 9 years ago

tomsf commented 9 years ago

I am sure there is a simple answer/setting I am missing. When a UITextInput is set up and has a _textstring identified, when you first click in the text input box and type an int it will append the _textstring label and return the whole appended string. (i.e. "Enter Int: 54") The second time you click the box it will properly erase the label and return just what you type (i.e. "54") How do I get int only result the first time it is entered? You can reproduce the behavior on the AllWidgets example, first text box in panel_2.

Tried all the toggles I could identify in ofxUITextInput and can't pin down how to get the behavior I am looking for. Thanks.