Microsoft KB Archive/33037

= Eight Colors Available in QuickBASIC on Macintosh II =

Article ID: 33037

Article Last Modified on 11/21/2006



This article was previously published under Q33037



SUMMARY
The only colors supported by QuickBASIC for Macintosh are the colors that are available with the Macintosh QuickDraw.

The colors and their respective values are as follows:

Black = 33

White = 30

Red = 205

Green = 341

Blue = 409

Cyan = 273

Magenta = 137

Yellow = 69

These color numbers are used in the following QuickBASIC Toolbox Library routines: ForeColor color% BackColor color%



MORE INFORMATION
The windows that BASIC opens can only contain the plain QuickDraw 8 colors. In technical terms, BASIC's windows are based on GrafPorts, not CGrafPorts. This guarantees that the BASIC program will run on any Macintosh, whether it has color QuickDraw or not.

Additional query words: MQuickB

Keywords: KB33037

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.