Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
colours Posted by sexyderry on 20 Nov 2002 at 4:40 AM
if, how do i change the colour of the writing or background or anything? i need a change of colour.
Report
Re: colours Posted by zibadian on 20 Nov 2002 at 4:43 AM
: if, how do i change the colour of the writing or background or anything? i need a change of colour.
:
In the text mode you need to use TextColor() and TextBackground(), while in the graphical mode you need to use SetColor() and SetBkColor(). See the help files for more information.
Report
Re: colours Posted by sexyderry on 20 Nov 2002 at 8:05 AM
: : if, how do i change the colour of the writing or background or anything? i need a change of colour.
: :
: In the text mode you need to use TextColor() and TextBackground(), while in the graphical mode you need to use SetColor() and SetBkColor(). See the help files for more information.
: do i just write textcolor(blue) 4 example? thanx alot anyway.

Report
Re: colours Posted by sexyderry on 20 Nov 2002 at 8:09 AM
: : : if, how do i change the colour of the writing or background or anything? i need a change of colour.
: : :
: : In the text mode you need to use TextColor() and TextBackground(), while in the graphical mode you need to use SetColor() and SetBkColor(). See the help files for more information.
: THANX ALOT!

Report
Re: colours Posted by viv. on 1 Dec 2002 at 12:20 PM
well, u see,
you can put things like blue etc in the brackets, however, using numbers is much more efficient and lets u do more things.for eg., check the program below,
PROGRAM colors;
VAR col,bkg,snd:integer;
BEGIN
 REPEAT
  BEGIN 
   writeln('enter 0 for all values to exit');   
   writeln('what text color do you wish to see?);
   readln(col);
   textcolor(col);
   writeln('what back ground color do you wish to see?');
   readln(bkg);
   textbackground(bkg);
   writeln('what sound do you wish tpo hear?');
   sound(snd);
  END;
 UNTIL (snd=0) AND (col=0) AND (bkg=0);
END.

this program would be very complex if u uses words like blue etc.
try it.
does this help?

   







 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.