Setting Color for GET Fields in Screen BuilderLast reviewed: April 17, 1995Article ID: Q95252 |
The information in this article applies to:
SUMMARYYou may be able to change the color for an individual GET field in a screen by adding an expression to the WHEN, VALID, or MESSAGE clause. This technique works properly only for GET fields for which the screen generator does not automatically generate a color scheme clause.
MORE INFORMATIONFor example, to change the foreground to white and the background to black for a GET field, you can enter the following expression in the WHEN or VALID clauses of the GET object. The Expression radio button should be selected for these clauses.
.t. COLOR ,W/NIf entered in the MESSAGE clause, the expression should have the following syntax:
" " COLOR ,W/NThe VALID and WHEN clauses expect a logical to be returned, and the MESSAGE clause expects a character string. If the same color is chosen for the foreground and background, such as N/N, password entry can be simulated. The color for lists and popups cannot be changed in these clauses. If the COLOR clause is added, a syntax error message will result when the .SPR is run. The Screen Builder generates color scheme clauses for lists and popups. When you are sending color clauses to the control GET fields (push buttons, radio buttons, and check boxes), the color combination must be preceded by eight commas instead of one.
REFERENCES"Developer's Guide," pages D14-40 to D14-41 "Commands & Functions," page C3-23
|
Additional reference words: FoxDos 2.00 2.50 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |