vidIVideo SetMB2Flag

Sets a particular command to the middle mouse button.

Syntax

vidIVideo_handle SetMB2Flag type_idx

Application

HyperWorks Tcl GUI

Description

This command sets a particular command to the middle mouse button when the middle mouse button is used in the window. The default command for the middle mouse button is CircleZoom.

Inputs

type_idx
The index of the command in the command types for the middle mouse button list. The different types include CircleZoom, Translate, PickCenter, and SetMarkerPosition with their indices being 0, 1, 2, and 3, respectively.

Example

hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;	
w1 GetClientHandle Video;
Video SetMB2Flag 1;

Errors

Success (0) or an error message is returned.

Keywords

  • HyperWorks
  • Tcl
  • Video