Set the ToolButton to show the message when the click is received in any part of the widget.
This commit is contained in:
parent
6572adb23b
commit
a56a343cd0
|
@ -196,7 +196,10 @@ ToolButton::MouseDown(BPoint where)
|
||||||
BRect rect(Bounds());
|
BRect rect(Bounds());
|
||||||
rect.left = rect.right - kPopUpMarkerRect;
|
rect.left = rect.right - kPopUpMarkerRect;
|
||||||
|
|
||||||
if (fMenu && rect.Contains(where)) {
|
// NOTE the following code was disabled to allow the widget
|
||||||
|
// show the menu when the click is received in any part of the
|
||||||
|
// widget instead of the flap only.
|
||||||
|
if (fMenu /*&& rect.Contains(where)*/) {
|
||||||
BPoint coords(rect.left + 2, rect.bottom + 1);
|
BPoint coords(rect.left + 2, rect.bottom + 1);
|
||||||
ConvertToScreen(&coords);
|
ConvertToScreen(&coords);
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue