Programming with Reflection

image\rwnprg32.gif SetMouseMap method

 

Syntax object.SetMouseMap Controls, Chord, Commands

 

Description

Maps a mouse chord to a Reflection command or sequence of commands to be when the mouse chord is used.

Arguments

Controls Argument type: Enumeration
The modifier keys associated with the specified mouse chord. The various possible combinations of modifier keys are defined by the values for this argument. Use rcNormal when there are no modifier keys.

 rcNormal
rcAlt
rcCtrl
rcShift
rcAltShift
rcCtrlShift
rcAltCtrl
rcAltCtrlShift

Chord Argument type: String
The primary mouse chord you are mapping. This command returns an error if the chord is not a valid chord name.

 To map a mouse chord, identify the button with "LeftBtn", "MiddleBtn", or "RightBtn"; to identify a double-click of a particular button, add DblClk at the end of the string. For example, "LeftBtn_DblClk".

Commands Argument type: String
The Reflection method, or sequence of methods, to be executed when mouse is clicked. Methods that return values can't be used. Use a space to separate multiple methods. Use double quotation marks around string arguments. For example, the following strings are all valid for this argument:

      "Connect"

      "TransmitAnsi ""Hello"" TransmitTerminalKey rcIBMEnterKey"

      "RunMacro ""MyMacro"", """""

 This string can be up to 260 characters long.

 You can also use "Hotspot" or "DragQuickText" for this argument. Use "Hotspot" to define the mouse chord that triggers a hotspot; use "DragQuickText" to define the mouse chord that drags quick text.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command