-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
wxTipWindow mostly ignores BoundingRect #24495
Comments
I tried to modify the |
This is going to be tricky to fix because the only way to get mouse events when the mouse is not over the window is to capture it — but doing this will prevent the user from clicking on the other elements without closing the tip window first, which risks being inconvenient. |
That's already what wxGTK does. But it won't work for wxMSW, as capture does not provide motion events outside of the capture window unless a button is down. AFAICT, the only way BoundingRect can work for wxMSW is if the "parent" is the window the rect is for,
Um, what? |
I was thinking about elements inside the window. |
By "window", do you mean the |
Sorry, I somehow thought it could have buttons inside it but I confused it with something else. Anyhow, the only ways to implement support for bounding rect in wxMSW that I see is to:
|
Description
Bug description:
The
wxTipWindow
is not fully respecting its bounding rectangle.Expected vs observed behaviour:
The
wxTipWindow
constructor has a (optional)rectBounds
argument.Expected: If the mouse leaves the
rectBounds
area, thewxTipWindow
is supposed to close.Observed: If the mouse leaves
rectBounds
but does not enter thewxTipWindow
, thewxTipWindow
does not close.Patch or snippet allowing to reproduce the problem:
wxTipWindow-BoundingRect-bug.patch
To Reproduce:
Steps to reproduce the behaviour
Ctrl+Shift+H
to open thewxTipWindow
rectBounds
to thewxSize(5, 5)
square around the initial cursor position. Move the cursor AWAY from the displayedwxTipWindow
so that it leaves the initialwxSize(5, 5)
square. No matter how far away the mouse is moved from its initial position, thewxTipWindow
stays open.wxTipWindow
. ThewxTipWindow
closes.The problem is that there is a
wxEVT_MOTION
handler in thewxTipWindow
that checks therectBounds
, but if the mouse is not overwxTipWindow
, the handler is never called.Platform and version information
The text was updated successfully, but these errors were encountered: