Skip to content

Preview value for InputText #7208

Closed
Closed
@eugeneko

Description

@eugeneko

Version/Branch of Dear ImGui:

docking

Details:

I would like to provide preview value for InputText. What would be the simplest way to achieve that?

E.g. I have text box with "some/very/long/long/path/to/file", but I would like to show ".../path/to/file" instead as long as user is not editing the text. When user starts editing the text, the "real" value is displayed.

I feel like there should be some trick to do that with existing InputText widget. I can maybe replace text value on the fly, but I am vary of messing this up and making text box wacky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions