How to customize the right and middle mouse buttons?

The mouse button actions can be edited in the MouseButtonRoot section of the CUI file. There are four button groups:

  • AUX1 for customizing Click (without modifier)
  • AUX2 for customizing Shift-Click
  • AUX3 for customizing Ctrl-Click
  • AUX4 for customizing Shift-Ctrl-Click

Each group contains several items, but BricsCAD® uses the first two button items for mouse customization.

  • The first button item defines the action for the right mouse button.
  • The second button item defines the action for the middle mouse button.
Note: The left mouse button behavior is fixed and cannot be customized.

If a button item has the BlankLine attribute set to true, the button executes the default action (as in previous versions). Otherwise, it executes the MenuMacro action you specify.

Important: The following system variables affect the behavior of the right or middle mouse button customizations.
  • The SHORTCUTMENU system variable's possible options, corresponding with the right-click, must be turned off. If turned on, the right-clicks without the Shift modifier display the built-in context menu and ignore the customizations (see the SHORTCUTMENU system variable article).
  • The CTRLMOUSE system variable must be turned off so that shortcuts involving clicking the right or middle mouse button are not executed instead of customizations made in the CUI (see the CTRLMOUSE system variable article).
  • The MBUTTONPAN system variable must be turned off so that the middle click without modifier does not execute the pan function (see the MBUTTONPAN system variable article).
  • The CTRLMBUTTON system variable must be turned off so that the Temporary tracking points entity snap is not executed when the middle mouse button is used during a command (see the CTRLMBUTTON system variable article).