Sets or gets the name of the macro/script to run when the DblClick event occurs.
object.OnDblClick = [string]
Where object is an object expression that evaluates to one of the controls in the Applies To list, and string is a string expression specifying the script or macro to run when the double click event is triggered.
Occurs when the user presses and releases a mouse button twice in short succession over an object.
For the Form object, this event occurs when the user double-clicks a disabled control or a blank area on the form.
For a control, this event occurs when the user double-clicks a control with the left mouse button.
You can use an OnDblClick macro for an implied action, such as double-clicking an image open a window or document. You can also use this type of macro to carry out multiple steps with a single action, such as double-clicking to select an item in a list box and to close the dialog box.
If DblClick doesn't occur within the system's double-click time limit, the object recognizes another Click event. The double-click time limit may vary because the user can set the double-click speed in the Control Panel. When you're attaching macros for these related events, be sure that their actions don't conflict. Controls that don't receive DblClick events may receive two clicks instead of a DblClick.
If the CancelEvent action is used in the OnDblClick macro for the control, then no DblClick event is triggered for the form. If the user double-clicks on a control that does not support the DblClick event, then no DblClick event is triggered for the form.
OnClick property | OnMouseEnter property | OnMouseExit property | CancelEvent action
ScrollBar control (control deprecated in version 10.5)
© 2004-2021 looksoftware. All rights reserved.