DOUBLE_CLICKED()

DOUBLE_CLICKED(N)

RETURNS 1 IF THE SYSTEM OBJECT NUMBER N IS DOUBLE-CLICKED, 0 OTHERWISE

  • Type: Function
  • Parameter: 1
  • Group: System Objects

ACTION

The function DOUBLE_CLICKED(N) returns 1 if the system object designated by its number N is double-clicked, and 0 if the system object is not double-clicked.

The system object N is of type : SCENE3D, EDIT, MEMO, COMBO, ALPHA, FORM, LIST, PICTURE, OPTION, SPIN, GRID, CONTAINER.

SYNTAX: Result=DOUBLE_CLICKED(N)

  • N = system object number (integer or real). Must be greater than or equal to 0 and less than or equal to the allowed maximum number of system objects.

USE

  • The function DOUBLE_CLICKED() is used to know if the system object is double-clicked by the user.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If the system object number N does not exist.
  • If system object number N is not of the type : SCENE3D, EDIT, MEMO, COMBO, ALPHA, FORM, LIST, PICTURE, OPTION, SPIN, GRID, CONTAINER.

EXAMPLE

label loop

edit 1:top 1,100

caption 0,"test of DOUBLE_CLICKED on EDIT"

print "double-click on EDIT"

loop:

if double_clicked(1)<>1

wait 100

goto loop

end_if

caption 0,"OK ---> DOUBLE_CLICKED on EDIT"

print "EDIT has been double-clicked"

SEE ALSO

ON_DOUBLE_CLICK

OFF_DOUBLE_CLICK

CLICKED()