Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / What does the background color for INK do?

Author
Message
roswell
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 3rd May 2003 18:07
In DBC, the INK command was used to set the foreground and background colors for the 2D command set and text command set. If you set a foreground color to white and a background color to blue, and did a CLS, you would get a blue screen and when you drew on it, the ink would be white. On my system using DBPro, the background color of INK seems to have little effect. Can someone explain to me why the background color for the following code is blue in DBC and black in DBPro?

/* You are not expected to understand this. */

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 3rd May 2003 18:17
Try using

cls rgb(0,0,255)

for the same effect.

Whatever I did I didn't do it!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd May 2003 20:43
The only commands that I know of that use the background colour are PRINT, TEXT and CENTER TEXT, and then only when you have SET TEXT OPAQUE.

I never knew that cls used the background colour in DB Classic.

roswell
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 3rd May 2003 22:55
Thanks IanM. The SET TEXT OPAQUE was what I was missing.

/* You are not expected to understand this. */

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro

Login to post a reply

Server time is: 2024-09-20 07:53:27
Your offset time is: 2024-09-20 07:53:27