Futurebasic/Language/Reference/color

< Futurebasic < Language < Reference

COLOR statement

COLOR

Statement

✔ Appearance ✔ Standard ✔ Console

Syntax

COLOR [=] colorExpr

Description

The COLOR statement sets the current window's foreground color to one of eight old-style "Basic QuickDraw" colors. colorExpr should equal one of the following:

0 (_zWhite)
1 (_zYellow)
2 (_zGreen)
3 (_zCyan)
4 (_zBlue)
5 (_zMagenta)
6
(_zRed)
7 (_zBlack)

"FB Lite" behavior:
When you use the "FB Lite" runtime, COLOR switches to the Graphics Window before executing; you can't use it to change the foreground color in the Text Window nor on the printer. To change the color of printed output while running FB Lite, use the Toolbox procedure <a href="http://developer.apple.com/documentation/mac/QuickDraw/QuickDraw-221.html">RGBFORECOLOR</a>.

Note:
The COLOR statement does not change the appearance of anything that's already in the window; the new color will appear the next time you draw text or a QuickDraw shape in the window.

For greater control over the foreground color, use the LONG COLOR statement.

See Also

Language Reference

LONG COLOR

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