WxWidgets lesson 4 EVT_LEFT_UP associated mouse pop-up event does not take effect
Description
Various controls are placed in panel, and then when the mouse pops up in panel, it responds to its event and finds that it does not enter the event function. At first, it was thought that EVT_MOTION could not coexist with EVT_LEFT_UP, but later shielded the EVT_MOTION event, without any effect.
In fact, when the mouse pops up over a panel control, it has nothing to do with panel. If you need to respond to an event, you must click in the panel area that is not obscured by the control.
Here is a note: when associating an EVT_MOTION mouse event, the following code appears:
If (event.LeftUp ())
{
WxClientDC dc (this)
Dc.DrawPoint (0,0)
}
The judgment language is always false, and the specific reason is not yet known.