GetClickShift()
Summary
Determines whether the Shift key was pressed during a prior "Click" function.
Syntax
rslt = GetClickShift()
Returns
A string containing "True" or "False".
Notes
-
GetClickShift() can be used to distinguish a mouse click from a Shift-click. It is used by the standard interface with the selection tools.
Example
// Here is the definition of a selection tool
Tool "select by radius" 0, 0 icons: "select.bmp" do
// Get the circle from the user
c = ClickCircle("")
// Check the Shift key...
shift_key = GetClickShift()
// Select as needed...
if shift_key = "True" then
SelectByCircle("Selection", "More", c)
else
SelectByCircle("Selection", "Several", c)
endItem
See Also
| Function | Summary |
|---|---|
| GetClickControl() | Determines whether the Ctrl key was pressed during a prior "Click" function |