Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Background
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jagoff




PostPosted: Thu Nov 06, 2008 3:48 pm   Post subject: Background

This is a really dumb question I bet as has been asked a million times but I can't find it even after like 30 minutes of lurking.

I'm making a program, and I want to have a background (all black) and I want to be able to cls without it being erased as well.
I looked into Draw.Cls but it switches it back to colour zero, is there anyway I can make it so it cls' to black, like make zero, seven? Or is what I'm asking for impossible.

Sorry again, thanks in advanced.
Sponsor
Sponsor
Sponsor
sponsor
metachief




PostPosted: Thu Nov 06, 2008 3:53 pm   Post subject: RE:Background

You can either draw a black box the size of your screen or you can use colorback (7).
The_Bean




PostPosted: Thu Nov 06, 2008 7:54 pm   Post subject: Re: Background

Text.ColourBack(7) is the way to go
if for some reason you really want to make colour 0= colour 7 then
you can do RGB.SetColour(0,0,0,0)
end if
%although it is highly not recommended
Insectoid




PostPosted: Thu Nov 06, 2008 10:37 pm   Post subject: RE:Background

Colorback will draw a line across the window. Colorback followed by cls will draw the entire thing black, and no matter how many times you cls, it will stay black. (Hurray for Turing on Mac!)
Jack140




PostPosted: Sun Nov 16, 2008 8:17 pm   Post subject: Re: Background

Hi,

This is what I use for all my backgrounds... I just obviously change the color of the text and background.
That's pretty much it... Smile


code:

% Setting up Window
View.Set ("graphics,nocurser")
setscreen ("graphics:1268,693") % Change this to whatever size you want
colorback (black) % Background = black
cls
color (green) % Color of text, change it to however you want...


I hope this helps...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: