[futurebasic] Re: [FB] Intro and questions.

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 1999 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Thu, 15 Jul 1999 21:51:22 -0500
Cheryl York wrote:

> Hello, (FB) world!

Hi, and welcome to the group!

> The program creates a fairly standard document window, but now I want to
> set the background color of the window.

You can do this using the LONG COLOR statement.  There is a
documentation/implementation error in this statement, so you actually need to
use the constant _foreground if you want to set the background color.  The
syntax is this:

LONG COLOR bluePart%, greenPart%, redPart%, _foreground  '(really sets
background)

Each of the "parts" can range from 0 (darkest) to 65535 (lightest).

The LONG COLOR statement doesn't change the window's appearance immediately.
To actually apply the background color, execute CLS right after the LONG COLOR
statement.

One more thing: LONG COLOR applies only to the current output window; so make
sure that the window you're interested in is the current output window before
executing LONG COLOR.  The current output window will be the window that was
most recently mentioned in a WINDOW statement or a WINDOW OUPTUT statement.

Hope this helps.
- Rick