-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the size of the input text field #385
Comments
If you mean the width, you can use PushItemWidth(xxx) for a specific size, or PushItemWidth(-xxx) to left-align. Use PopItemWidth() to return to the previous value in the stack. |
It would be neat to set a character count based on m width. |
You can set a character count via the buffer size. Not sure why it'd be useful that InputText reduce the character count based on UI size. Sent from my fax machine
|
I meant for fixed size numbers like 3 digit ints.
|
If you have a 3 digit ints you can pass a value of 3+1 as buffer size. I'm still not sure of what you are asking for :) |
InputInt4 doesn't take a character buffer it takes an int storage. So for
similar methods having a fixed width would be neat, but yoi can do it
otherwise as you describe and not be lazy like I'm describing ;).
|
|
You can also replicate the behavior of InputInt() with InputText() and scanf() |
Push and pop worked for me and worked better than I expected 👍 |
how to give size to particular text without disturbing others |
what would be the equivalent for setting heights? |
The height of text inputs is based on the font size and the frame padding. So adjust one or the other depending on the appearance you're trying to accomplish. For font size you're best off loading the same font at various sizes and swapping between sizes using For frame padding adjust it via |
Is there any way for me to set the size of the input text field ?
The text was updated successfully, but these errors were encountered: