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

ImGuiColorEditFlags_NoDragDrop #1826

Closed
OswaldHurlem opened this issue May 20, 2018 · 1 comment
Closed

ImGuiColorEditFlags_NoDragDrop #1826

OswaldHurlem opened this issue May 20, 2018 · 1 comment

Comments

@OswaldHurlem
Copy link
Contributor

OswaldHurlem commented May 20, 2018

Version/Branch of Dear ImGui: v1.61 WIP

My Issue/Question: For prototype design purposes I am using a few non-interactive ColorButtons. However, Dear ImGui prevents me from making them totally non-interactive since they work as drag/drop targets.
What would be nice is a flag to disable this.
If this instead worked via a unstable internal function like PushItemFlags, that would be OK.

Standalone, minimal, complete and verifiable example:

    ImGui::Text("I'd like this button to do absolutely nothing");
    ImGui::ColorButton("#DoNothingButton", ImVec4(1.0f, 0.0f, 0.0f, 1.0f), ImGuiColorEditFlags_NoTooltip);
ocornut added a commit that referenced this issue May 21, 2018
…Drop flag to disable ColorEditX as drag target and ColorButton as drag source. (#1826)
@ocornut
Copy link
Owner

ocornut commented May 21, 2018

@OswaldHurlem Added this as suggested, it makes sense.

// ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
ImGuiColorEditFlags_NoDragDrop      = 1 << 9,

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