GetClickControl()

Summary

Determines whether the Ctrl key was pressed during a prior "Click" function.

Syntax

rslt = GetClickControl()

Returns

A string containing "True" or "False".

Notes

  • GetClickControl() can be used to distinguish a mouse click from a Ctrl-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
GetClickShift() Determines whether the Shift key was pressed during a prior "Click" function