[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Colors of DeFined text



** Reply to message from "Robert Holmgren"  on Sat, 23 Jul
2005 03:42:58 -0400

More on setting the Define Display value (). This is not explained
accurately, or at all really, in the Customization Guide. It says (p.19) that
"the actual [DeFine] display is based on the binary difference between ... the
[VADD] number that you specify and ... the [MoDe] number of the text that is
defined."

Set VADD with respect to MoDe NorMal text. The foreground/background colors of
DeFined text will indeed change, if the underlying text is already underlined,
bold, italic, etc. -- but the way to set the *default value* of DD is with
NorMal, unMoDed text.

Decide what foreground/background color combo (MoDe number) you want to use for
DeFined text by referring to the Color Table in U2:
 TABLE COLOR
Suppose that the particular MoDe number you select is "x". The formula for
obtaining DD is fairly simple (complicated only by the need to avoid
divide-by-zero errors). You can input the formula on the CMline, on the fly:
 @INT((x+16)/16)*32-x-17=
then hit . If, for example, you wanted to display DeFined text as MoDe 31
(bold white text on blue ground), you'd enter:
 @INT((31+16)/16)*32-31-17=
Result is "16". So, on the CMline, for effect during current session only,
command:
 d dd=16
For permanent setting, enter this value in SETTINGS.DFL:
 df dd=16

Copy the formula into SETTINGS.DFL, for future reference:
 ;DD is the number used to compute display of DeFined text
 ;@INT((desired_MD_number+16)/16)*32-desired_MD_number-17=
 df dd=16

There will be a frame in the next U2 that determines this number automatically.

-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------