< Futurebasic < Language < Reference

Autoclip

Statement

✔ Appearance ✔ Standard χ Console

Syntax

autoclip [=] booleanExpr

Description

If booleanExpr evaluates as "false" (zero), this statement turns off the "autoclip" flag for the current output window. If booleanExpr evaluates as "true" (nonzero), this statement turns on the "autoclip" flag for the current output window, unless the window was created with the _noAutoClip attribute.

If a window's autoclip flag is "on," things like buttons, edit fields and picture fields are excluded from the window's "clipping region." This exclusion means that such object are "protected"—drawing commands won't draw over such areas, and the cls command won't erase them. While leaving autoclip "on" is normally a good idea, it can slow down the execution of drawing commands, especially on older Macs.

Any FB window will have its autoclip flag "on" at the time it's created, unless the _noAutoClip attribute is set in the window statement that creates it.

Notes

No special notes.

See Also

_noAutoClip attribute in the window statement

Language Reference

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.