OFF_MOVE

OFF_MOVE N

IGNORES THE EVENT "MOVE" WHEN THE USER MOVES THE FORM NUMBER N

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

ACTION

The command OFF_MOVE N ignores the event "move" on the FORM designated by the number N: the event subprogram is not executed when the user moves the FORM.

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

SYNTAX: OFF_MOVE 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 is used not to treat the event "MOVE" happening to a FORM: 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 : FORM.

EXAMPLE

label move

dim c%

caption 0,"Move FORM0 with mouse"

on_move 0, move

end

move:

c%=c%+1

caption 0,"moved "+str$(c%)+" times"

if c%>10 then off_move 0

return

SEE ALSO

ON_MOVE