#### Mouse Interaction

The tables below explain how the mouse buttons interface with the plot display.

NeXtMidas follows the following mouse button naming convention used by many other programs. The names are as follows:

- LMB - Left Mouse Button
- MMB - Middle/Center Mouse Button
  - If you hold down the RMB and then release, it will be treated like a MMB, this is to support 2-button mice.
- RMB - Right Mouse Button

Most users with wheel-mice (such as those distributed by Microsoft, Logitech, and Dell) will find that pressing the wheel down has the same effect as a MMB click.

##### Mouse Interaction in a Plot

    Button                   Function
    LMB Click                Indicate/clear a mark point (the point where
                             any dx/dy values are computed relative to).
                             (The function can also be user defined, see below)

    LMB Drag                 Selects a box to zoom in on.

    Shift LMB Drag           Creates a DRAGBOX on a plot. (Some macros use the
                             DRAGBOX message to draw a box on the plot.)

    MMB Click                Click on black area of Plot window to bring up the
                             Plot menu.
                             (The function can also be user defined, see below)

    MMB Drag                 When zoomed-in on a region, this pans/moves the
                             plot.

    RMB Click                Zoom out to the previous level.
                             (The function can also be user defined, see below)

    RMB Click-Hold-Release   Click on black area of Plot window hold down button
                             for 1 second then release to bring up the Plot
                             menu. This option is provided to support two
                             button mice.

    RMB Drag                 (Geodetic View Only) If done over the World it
                             rotates the plot; if done away from the world
                             it zooms in/out.
                             (Other Views) Zoom in/out by clicking in the top right
                             corner (top 20%) and dragging. Drag toward the bottom
                             left to zoom in and towards the top right to zoom out.

"Readout" information is displayed as the mouse moves over a plot. For example, when you place the pointer on the map of the world, the latitude and longitude are shown in parentheses after the word PLOT in the title bar. This information changes as you move the pointer around the map.

Since 3.5.2, the function of mouse clicks can be user defined using the keyword only parameter BUTTONACTION={MMB=<action>,RMB=<action>,LMB=<action>}. The functions listed in the chart are the defaults.

The `XGEOPLOT` command in X-Midas requires users to click within a "pan/zoom box" to pan/move the plot. In NeXtMidas, users pan by clicking anywhere on the plot.

##### Mouse Interaction in a Menu

The following mouse interactions are available within a popup menu:

    Button                 Function
    LMB Click              Selects an item in the menu.

    RMB Click              Exits the menu.

    MMB Drag               Moves the menu from one location to another.

##### Mouse Interaction in a Panel

The following mouse interactions are available within a NeXtMidas panel:

    Button                 Function
    LMB Click              If over a menu or valuator widget, this brings
                           up a menu to select options.

    LMB Click              If over the widget title, this cycles through
                           the available values.

    MMB Click              If over the black area, this brings up the Panel
                           menu.

    RMB Click              If over the widget title, this cycles through
                           the available values (in descending order).

Note: The above interactions may not be available in a Swing panel.