Color in browse

Jean-Pierre Radley appl at jpr.com
Sat Oct 7 13:22:17 PDT 2017


Richard Kreiss averred (on Fri, Oct 06, 2017 at 09:03:55PM +0000):

| I have a yes/no field cl(3,*) which is either a Y or N depending if
| there is a record in a file names call_list.  A lookup is done using
| the drop routine to set this value.
|
| I would like to have the N show up in red as that would avoid the user
| having to press <V> to see if there are any names. (Y) indicates there
| are and <N> no mane present.
|
| I have tried various combinations of display code without success.
|
| Any suggestion as to how I should be doing this?
|
| Windows 10 FilePro Version 5.8
|

Perhaps an old post of mine might sugggest a path to your solution:

On Mon, Apr 11, 2016 at 5:35 PM, Jean-Pierre Radley wrote:

> Did I ever show you my subroutines for changing the color of the field
> in which the cursor currently resides?  It signals where you are rather
> more than a little old blinking cursor.
>
>         :hilite::show(@ro, at co) "\B3"&fieldval(-, at fd)&"\B-";return:
>         :lolite::show(@ro, at co) fieldval(-, at fd);return:
>
> Call "gosub hilite" (or "gosub lolite"), at every @wefX (or @wlfX) for
> each field X, and at @wef* (or @wlf*) for all the other fields.
>
> UNIX:  This works on color screens, which I prefer, so that I set PFTERM
> to cansi in my environment. I suppose you could change the request for a
> color to a request for inverse in a monotone screen -- haven't tried it.
>
> WINDOWS: This "should" work, but I don't run Windows, so you tell me.
>
> --
> JP












-- 
JP


More information about the Filepro-list mailing list