-\membersection{wxMouseEvent::Position}
-
-\func{void}{Position}{\param{float *}{x}, \param{float *}{y}}
-
-Sets *x and *y to the position at which the event occurred. If the
-window is a window, the position is converted to logical units
-(according to the current mapping mode) with scrolling taken into
-account. To get back to device units (for example to calculate where on the
-screen to place a dialog box associated with a window mouse event), use
-\rtfsp{\bf wxDC::LogicalToDeviceX} and {\bf wxDC::LogicalToDeviceY}.
-
-For example, the following code calculates screen pixel coordinates
-from the frame position, window view start (assuming the window is the only
-subwindow on the frame and therefore at the top left of it), and the
-logical event position. A menu is popped up at the position where the
-mouse click occurred. (Note that the application should also check that
-the dialog box will be visible on the screen, since the click could have
-occurred near the screen edge!)
-
-\begin{verbatim}
- float event_x, event_y;
- event.Position(&event_x, &event_y);
- frame->GetPosition(&x, &y);
- window->ViewStart(&x1, &y1);
- int mouse_x = (int)(window->GetDC()->LogicalToDeviceX(event_x + x - x1);
- int mouse_y = (int)(window->GetDC()->LogicalToDeviceY(event_y + y - y1);
-
- char *choice = wxGetSingleChoice("Menu", "Pick a node action",
- no_choices, choices, frame, mouse_x, mouse_y);
-\end{verbatim}
-