Futurebasic/Language/Reference/def border

From Wikibooks, open books for an open world
Jump to navigation Jump to search

DEF BORDER Statement[edit | edit source]

DEF BORDER[edit | edit source]

Statement[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax[edit | edit source]

DEF BORDER(twoPixelBorder, {rect | #rectAddr&})

Description[edit | edit source]

Draws a double border (in the current color and pattern) around the outside of the rectangle which is specified by rect (which should be an 8-byte variable such as a RECT type), or pointed to by rectAddr&. If twoPixelBorder is "true" (nonzero), then the outer border is drawn with a 2-pixel pen width; otherwise it's drawn with a 1-pixel pen width.

Example[edit | edit source]

image res/cd.gif CD Example: DEF BORDER.BAS

FB Lite Behavior[edit | edit source]

When you use the "FB Lite" runtime, DEF BORDER switches to the Graphics Window before executing.

See Also[edit | edit source]

DEF TITLERECT; DEF SHADOWBOX; DEF <just>BOX