OFF_MOUSE_UP

OFF_MOUSE_UP N

IGNORES THE EVENT "MOUSE_UP" WHEN THE USER RELEASES A KEY OF MOUSE ON THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameter: 1
  • Group: Events

ACTION

The command OFF_MOUSE_UP N ignores the event "mouse_up" on the system object designated by the number N: the event subprogram is not executed when the user releases a key of mouse, while the mouse is on the system object designated by the number N.

Remark 1: the system object must be one of the following types: SCENE3D, BUTTON , EDIT, MEMO, ALPHA, FORM, LIST, PICTURE, CHECK, OPTION, PROGRESS_BAR, SPIN, GRID, CONTAINER, SCENE2D, PANEL, CONTAINER_TAB, TAB.

Remark 2: the event subprogram is defined by the command ON_MOUSE_UP N,L which assigns the label L as the starting point of the event subprogram.

SYNTAX: OFF_MOUSE_UP N

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

USE

  • The command OFF_MOUSE_UP is used not to treat the event "MOUSE_UP" happening to a system object: when the event occurs, the event subprogram is not executed.

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 system object number N does not exist.
  • If system object number N is not of the type : SCENE3D, BUTTON , EDIT, MEMO, ALPHA, FORM, LIST, PICTURE, CHECK, OPTION, PROGRESS_BAR, SPIN, GRID, CONTAINER, SCENE2D, PANEL, CONTAINER_TAB, TAB.

EXAMPLE

label down, up

button 1

left 1,300

width 1,200

on_mouse_up 1, down

on_mouse_up 1, up

caption 0,"Press and release mouse button on Button"

end

down:

caption 0,"DOWN on BUTTON"

pause 1000:caption 0,""

off_mouse_down 1

return

up:

caption 0,"UP on BUTTON"

pause 1000:caption 0,""

off_mouse_up 1

return

SEE ALSO

ON_MOUSE_UP

ON_MOUSE_MOVE

ON_MOUSE_DOWN

OFF_MOUSE_MOVE

OFF_MOUSE_DOWN