mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-01 05:10:41 +00:00
Disable movement of popup_context_window #1533
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#1533
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello I am using a gamemaker port of this library and I was wondering how to make a rightclick context menu while disallowing it to be dragged around.
could you show me a example on how to do this in c++?
You cannot at the moment.
You'd essentially need to pass the
ImGuiWindowFlags_NoMoveflags to theBegin()call, but for various reasons you can't yourself since flags are not exposed toBeginPopup()andBeginPopupContextItem(), unless you use and rely on theimgui_internal.hprivate API.May I ask what is the reason you want to disable dragging around?
thankyou for your time
ya thats what I was thinking but I couldn't find a way to pass that flag in
I want it like this so its more like a window7 context strips where its not able to be dragged around.
not much of a reason behind it besides the feel and looks, but I feel that these things should be able to be done.
@Shadowblitz16
With recent planned work I have exposed flags to
BeginPopup()so it is possible to pass theImGuiWindowFlags_NoMoveflag to it now.