# MiddleMouseMode enum

Namespace: [Rhino.ApplicationSettings](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.applicationsettings.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md) · Since v5.0

```cs
public enum MiddleMouseMode
```

Defines enumerated constant values to define what happens when either the middle mouse button on a three-button mouse is clicked or after pressing the wheel on a wheeled mouse.

## Values

| Name | Value | Description |
| --- | --- | --- |
| PopupMenu | 0 | Pops up two-part menu at the cursor location. You can list your favorite commands in the top section. The bottom section is the list of most recent commands used. |
| PopupToolbar | 1 | Choose a toolbar to pop up at the cursor location. Create a toolbar containing your favorite commands or object snaps to use as a pop-up toolbar. |
| RunMacro | 2 | Lists a series of commands that run when you click the middle mouse button. |
