Skip to content

How to hide a TextFilter's label? #6724

Closed
@sodamouse

Description

Version/Branch of Dear ImGui:

Version: 1.89.7
Branch: Docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp + imgui_impl.opengl3.cpp
Compiler: clang++
Operating System: Archlinux

My Issue/Question:

Hi, I am trying to figure out how to hide a TextFilter's label. I know that this can be done using Push/PopItemWidth for other widgets, but this does not seem to work for TextFilter. I have not managed to find any examples of this when searching. Is this currently possible?

Screenshots/Video

image

XXX (you can drag files here)

Standalone, minimal, complete and verifiable example: (see #2261)

ImGui::PushItemWidth(-1);
static ImGuiTextFilter filter;
(void)ImGui::PopItemWidth;

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions