-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
[bug] Missing MouseButton function for ContextMenu on docking branch #609
Comments
- Events.go: wrapps cimgui events detection - EventHandler.go: giu version of event handler - Keycode.go: now contains a few more things, e.g. HoveredFlags - add (*ContextMenu).MouseButton(...); fix AllenDang#609
Hey @gucio321 |
Hey @gucio321 |
Hey @gucio321 Is this problem because of these lines? |
oh, yah, sorry, forgot about changing it there 😄 |
ugh, wait @SeyRyuu after looging at cimgui.ImGuiPopupFlags, I see that mouse button (and a few more things) are set by these flags, so you need to use them instead MouseButton() @AllenDang should we adjust MouseButton function here and make it working with these flags, or rather remove it and let user use flags to set mouse button? |
Hey @gucio321 But, i would say that the |
@gucio321 i think mousebutton function is better. |
What happend?
I just wanted to use the MouseButton func of the ContextMenu widget on the docking branch and noticed that this function is missing. Did the way of using the ContextMenu changed, or is this function missing in the docking branch?
The code example below works fine when using master branch instead.
Kind regards
Code example
main.go
To Reproduce
Version
docking
OS
Windows 11 x64, Ubuntu x64
The text was updated successfully, but these errors were encountered: