No announcement yet.

Background Grey?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Background Grey?

    I thought I could make the background in Dos PowerBasic grey??

    Shouldn't COLOR 0,8 give me black text on a grey background?
    If the answer is yes, then my next questions I switched over
    to using flat screen monitors. Will that prevent the grey
    backgound? If the answer is no, what can I do to correct it?

    I thought about posting the code- but I am not sure what code
    the admin does not mind being posted.

    Thanks very much.



  • #2
    PB/DOS manual, COLOR statement:
    Background is an integer expression from 0 to 7 specifying background color.
    It's possible to get the equivalent of background colors 8-15 by changing
    the meaning of the "blink" attribute to allow a greater background color
    range. I'm not sure how well this works in a DOS box, though, if at all.
    I'd guess it might work in full-screen mode but, perhaps, not in windowed
    mode. You ought to be able to find example code in the PB/DOS Downloads:

    Tom Hanlin
    PowerBASIC Staff


    • #3
      Well, in my experience, you can change this, and it will work in both the full screen dos mode, and windowed dos boxes. After all, VB/DOS uses this method, and it works in both.

      Jonathan Simpson
      Jonathan Simpson


      • #4
        Hi Robert,

        The background and the border can be set to any color you wish but if it is going to be > 7 then you've got to work at it.

        I've got the routines around here somewhere but I've not seen them for many a' year now so I'd suggest that you step over to my web site and the d/load Nutz'N'Boltz library.