OFF_RESIZE

OFF_RESIZE N

IGNORES THE EVENT "RESIZE" WHEN THE USER RESIZES THE FORM NUMBER N

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

ACTION

The command OFF_RESIZE N ignores the event "resize" on the FORM designated by the number N: the event subprogram is not executed when the user resizes the FORM.

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

SYNTAX: OFF_RESIZE 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_RESIZE is used not to treat the event "RESIZE" 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 resize

dim c%

caption 0,"Resize FORM0 with mouse"

on_resize 0, resize

end

resize:

c%=c%+1

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

if c%>10 then off_resize 0

return

SEE ALSO

ON_RESIZE