XSharpPublic
XSharpPublic copied to clipboard
TypedSDK: PushButton:MouseButtonDown() callback is never called
Describe the bug The mentioned callback does never happen
To Reproduce
- Instantiate a pushbutton with the TABSTOP style and put it on a dialog
- Write a MouseButtonDown(oMev) method and put some debug code in it
- Move the mouse over it (the appearance changes a bit as expected) or give it focus by TAB key
- Click the mouse (left button)
- Debug console shows nothing, but it should
Additional context There are of course workarounds (Dispatch() method, maybe other callbacks, even ButtonClick() on the owner dialog), but that's not the point.
I tried to reproduce this with the Pizza example, ported from VO. When I add
MouseButtonDown(oMev as MouseEvent) AS VOID
SUPER:MouseDown(oMev)
RETURN
to the class TwoBmpButton, then this method gets called when I press the mouse on the button with the bitmaps. This button has the TabStop style set
CONTROL "", ORDERDIALOG_ORDERBUTTON, "BUTTON", WS_CHILD|WS_TABSTOP|BS_DEFPUSHBUTTON|BS_BITMAP, 15, 225, 43, 40