Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor color in FoxPro 2.6 for DOS

Status
Not open for further replies.

KGHN

Programmer
Jan 7, 2014
3
US
I'm running FoxPro 2.6 for DOS on a Win7-32 machine.
I realized I was struggling to see a hot pink (bright purple) cursor on a medium (dark) green background.
I spent a couple of hours trying to find a control to change that color.
In Tek-Tips, asks the same question, but did not give an answer that worked for me. The interactive color window in the FP command window mentioned there was helpful, though.
I share the result of my research, and how I set up my BROWSE colors:
W=white/light grey, N=dark grey/black, R=red, B=blue, G=green, BG=cyan, GR=yellow/khaki, RB=purple
10 pairs in color selection, then + or - shadow
each pair is text color / background
to make a color bright add + to text or * to background
(1) table rows unselected GR+/G
(2) text box (selected cell in BROWSE) W+/B
(3) border GR+/GR
(4) title text N/W
(5) message in footer N/W
(6) selected text R+/R (not seen in BROWSE window)
(7) info bar / selected BROWSE row W+/BG
(8) shadow N+/N
(9) enabled control BG+/B
(10) disabled control N+/B

Here's the non-obvious answer. The cursor color is not controlled separately. Instead:
*** cursor color is inverse of text box background ***
background B, cursor GR+ (yellow on dark blue, good)
background N, cursor W+ (bright white on black)
background G, cursor RB+ (bright purple on green, hard to see)
background R, cursor BG+ (bright cyan on red)
I haven't tried, but presume
background W*, cursor N (black on bright white)

I conclude there are only a few options with good enough contrast to see easily. I recommend a (not-bright) blue or black background for the second color pair = text box = active cell in the BROWSE.
 
KGHN,
You should post this as a "Helpful Tip" instead of a question. Makes it easier for people to find. And actually, for best visibility, you should make this an FAQ.


Best Regards,
Scott
MSc ISM, MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"I try to be nice, but sometimes my mouth doesn't cooperate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top