I'm sure this is really simple, but haven't found what I need. I want to have EVT_MOTION events from one window sent to another. For example, imagine an image viewer where a tool palette shows the x, y coordinates and RGB color of the pixel under the mouse in the main image window. The tool window needs to know when the mouse moves in the main window. Can I use Bind in the tool window to bind events in the main window? Or is there some other way?
I’m sure this is really simple, but haven’t found what I need. I want to have EVT_MOTION events from one window sent to another. For example, imagine an image viewer where a tool palette shows the x, y coordinates and RGB color of the pixel under the mouse in the main image window. The tool window needs to know when the mouse moves in the main window. Can I use Bind in the tool window to bind events in the main window? Or is there some other way?
Great. event.Skip() makes it work properly, so now the tool window and
the main window see the event. I’m wondering now about the proper
practice here. For modularity, should all event handlers call
event.Skip() at the end to ensure that other bound listeners have a
chance? In most cases, it’s unneeded, right? What’s the right thing
to do?