(Cocoa) TSpeedButton does not respond to clicks properly if parent is TGroupBox
Original Reporter info from Mantis: Blake
-
Reporter name: Blake
Original Reporter info from Mantis: Blake
- Reporter name: Blake
Description:
When a TSpeedButton is in a TGroupBox, mouse click events appear to respond to a different rectangle area (shifted a few pixels above the button).
Mouse enter/leave events are responding to the correct frame.
I tried a TSpeedButton in a TPanel instead, and it works ok.
This bug isn't a big deal with large buttons, but for little ones (about 10 pixels high) it becomes confusing for the user.
Steps to reproduce:
- run attached project
- click near the bottom of the button in the groupbox (a few pixels)
- ...it does not respond to the click
- click above the button (a few pixels, seems to be the same offset)
- ...it responds even though the mouse is not over the button
- notice that the OnMouseEnter and OnMouseLeave callbacks are working correctly, and clicks on the button in TPanel are working correctly
Additional information:
Also reproduced same behaviour in trunk revision 61756.
Mantis conversion info:
- Mantis ID: 36109
- OS: macOS Mojave
- OS Build: 10.14.6
- Build: 61930
- Platform: Darwin
- Version: 2.1 (SVN)
- Fixed in revision: 62061 (#bb2517cb)
- Monitored by: » Blake (Blake)