Skip to content
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

Align the content of an Input box to the right. #1440

Closed
kucoman opened this issue Nov 15, 2017 · 2 comments
Closed

Align the content of an Input box to the right. #1440

kucoman opened this issue Nov 15, 2017 · 2 comments

Comments

@kucoman
Copy link

kucoman commented Nov 15, 2017

A very usual way to present numbers in input boxes is to align them to the right, but I see no way to achieve this at the moment with InputText() or InputInt().

Is there a straightforward way I am not considering?
If not. Any suggestions to achieve this with some tweaking?
I am mostly interested in single line integer/float input.

@ocornut
Copy link
Owner

ocornut commented Mar 2, 2021

Closing this (because #1442 reflects this idea, so keeping #1442 open)

@ocornut
Copy link
Owner

ocornut commented Dec 9, 2024

This is now supported with the ImGuiInputTextFlags_ElideLeft flag, see #1442 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants