Difference between revisions of "SET COLOR OF"

From Recital Documentation Wiki
Jump to: navigation, search
(Description)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=SET COLOR OF=
 
 
 
==Class==
 
Screen Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
Change the color of a predefined display area
 
Change the color of a predefined display area
Line 12: Line 5:
 
==Syntax==
 
==Syntax==
 
SET COLOR OF <display area> TO [<color>]
 
SET COLOR OF <display area> TO [<color>]
 +
 
SET COLOR OF SCHEME <expN> TO [<color> | SCHEME <expN>]
 
SET COLOR OF SCHEME <expN> TO [<color> | SCHEME <expN>]
 +
 
SET COLOR SET TO [<expN>]
 
SET COLOR SET TO [<expN>]
 +
  
  
 
==See Also==
 
==See Also==
[[@...FILL]], [[@...GET]], [[@...SAY]], [[@...TO]], [[CLEAR]], [[RESTORE COLOR]], [[SAVE COLOR]], [[SET COLOR]], [[ISCOLOR()]], [[SETCOLOR()]]  
+
[[@...FILL]], [[@...GET]], [[@...SAY]], [[@...TO]], [[CLEAR]], [[ISCOLOR()]], [[RESTORE COLOR]], [[SAVE COLOR]], [[SET COLOR]], [[SET DISPLAY]], [[SETCOLOR()]]  
  
  
Line 23: Line 19:
 
The SET COLOR OF <display area> TO <color> command controls predefined screen area groupings so that you can change color attributes of individual screen areas independent of one another.  The following display areas are predefined.
 
The SET COLOR OF <display area> TO <color> command controls predefined screen area groupings so that you can change color attributes of individual screen areas independent of one another.  The following display areas are predefined.
  
{| class="bordered"
+
 
|Display Area||Description
+
{| class="wikitable" width="100%"
 +
!Display Area||Description
 
|-
 
|-
 
|ALERT||All error message alert boxes
 
|ALERT||All error message alert boxes
Line 36: Line 33:
 
|DIALOG||Dialog boxes  
 
|DIALOG||Dialog boxes  
 
|-
 
|-
|[DIALOG]FRAME||Frames around dialog boxes  
+
|DIALOG FRAME||Frames around dialog boxes  
 
|-
 
|-
 
|FIELDS||Normal display area like <standard>  
 
|FIELDS||Normal display area like <standard>  
Line 56: Line 53:
 
|SHADOWS||Bottom and right edge of dialog boxes
 
|SHADOWS||Bottom and right edge of dialog boxes
 
|-
 
|-
|TITLES||Dialog box titles
+
|TITLES||Dialog box titles, [[DBEDIT()]] column titles, etc.
 
|-
 
|-
 
|}
 
|}
 +
  
 
The SET COLOR OF SCHEME and SET COLOR SET commands have been added for syntax compatibility with FoxPro.
 
The SET COLOR OF SCHEME and SET COLOR SET commands have been added for syntax compatibility with FoxPro.
 +
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
set color of menu to W && set menus to white
+
// set menus to white
foreground = "N" &&use memory variables
+
set color of menu to W
 +
// use memory variables
 +
foreground = "N"
 
background = "GR"
 
background = "GR"
 
set color to (foreground + "/" + background)</code>
 
set color to (foreground + "/" + background)</code>
 +
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|COLOR OF]]
 
[[Category:Set_Commands|COLOR OF]]
 +
[[Category:Screen Environment]]
 +
[[Category:Screen Environment Set Commands]]

Latest revision as of 08:52, 13 March 2015

Purpose

Change the color of a predefined display area


Syntax

SET COLOR OF <display area> TO [<color>]

SET COLOR OF SCHEME <expN> TO [<color> | SCHEME <expN>]

SET COLOR SET TO [<expN>]


See Also

@...FILL, @...GET, @...SAY, @...TO, CLEAR, ISCOLOR(), RESTORE COLOR, SAVE COLOR, SET COLOR, SET DISPLAY, SETCOLOR()


Description

The SET COLOR OF <display area> TO <color> command controls predefined screen area groupings so that you can change color attributes of individual screen areas independent of one another. The following display areas are predefined.


Display Area Description
ALERT All error message alert boxes
BOX All boxes
BROWSE BROWSE work surface
BROWSEFRAME BROWSE frames
DIALOG Dialog boxes
DIALOG FRAME Frames around dialog boxes
FIELDS Normal display area like <standard>
GETFOCUS Current get field
HELP Message line
HIGHLIGHT Highlighted menu options
INFORMATION Status bar, clock, etc
MENUS Pulldown, pop-up menus
MESSAGES System message bar
NORMAL Normal screen output
SHADOWS Bottom and right edge of dialog boxes
TITLES Dialog box titles, DBEDIT() column titles, etc.


The SET COLOR OF SCHEME and SET COLOR SET commands have been added for syntax compatibility with FoxPro.


Example

// set menus to white
set color of menu to W
// use memory variables
foreground = "N"
background = "GR"
set color to (foreground + "/" + background)


Products

Recital