previous
|
start
|
next
Mouse Events
To handle mouse input in a graphical window, you install a function that is notified when mouse events occur.
There are several kinds of mouse events:
motion
dragging (moving while depressing a mouse button)
mouse button going down
mouse button going up
clicking (mouse button going up and down within a short period)
double clicking
You install the mouse handler with the
EVT_MOUSE_EVENTS
macros.
BEGIN_EVENT_TABLE(TriangleWindow, wxWindow) EVT_MOUSE_EVENTS(TriangleWindow::OnMouseEvent) . . .
previous
|
start
|
next