blink a text??

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2004
Posts: 116
Reputation: stackOverflow is an unknown quantity at this point 
Solved Threads: 0
stackOverflow's Avatar
stackOverflow stackOverflow is offline Offline
Junior Poster

blink a text??

 
0
  #1
Oct 27th, 2005
Hello everyone,

Just wanted to know how can i blink a text in C/C++. Should use any graphics function. And i'm supposed to use a TC 3.0 :rolleyes:
Imagination was given to man to compensate him for what he is not; A sense of humour to console him for what he is..
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: blink a text??

 
0
  #2
Oct 27th, 2005
Blinking text in DOS, compiled with Turbo C
  1. #include <conio.h>
  2. #include <stdio.h>
  3. int main()
  4. {
  5. int color;
  6. textattr(128 + 10);
  7. cprintf("This is blinking text\n");
  8. return 0;
  9. }
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 116
Reputation: stackOverflow is an unknown quantity at this point 
Solved Threads: 0
stackOverflow's Avatar
stackOverflow stackOverflow is offline Offline
Junior Poster

Re: blink a text??

 
0
  #3
Oct 27th, 2005
Thanks a lot for the help, it works. But i was just wondering if the same can be done in graphical mode using graphics.h. Any help will be appreciated. Thanks.
Imagination was given to man to compensate him for what he is not; A sense of humour to console him for what he is..
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 353
Reputation: Asif_NSU is on a distinguished road 
Solved Threads: 2
Asif_NSU's Avatar
Asif_NSU Asif_NSU is offline Offline
Posting Whiz

Re: blink a text??

 
0
  #4
Oct 28th, 2005
Originally Posted by sunnypalsingh
Blinking text in DOS, compiled with Turbo C
  1. #include <conio.h>
  2. #include <stdio.h>
  3. int main()
  4. {
  5. int color;
  6. textattr(128 + 10);
  7. cprintf("This is blinking text\n");
  8. return 0;
  9. }
Nice copy from the web
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: blink a text??

 
0
  #5
Oct 28th, 2005
So...
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 353
Reputation: Asif_NSU is on a distinguished road 
Solved Threads: 2
Asif_NSU's Avatar
Asif_NSU Asif_NSU is offline Offline
Posting Whiz

Re: blink a text??

 
0
  #6
Oct 28th, 2005
Originally Posted by sunnypalsingh
So...
So it's a nice copy from the web

Nevermind, just ignore what I said.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 116
Reputation: stackOverflow is an unknown quantity at this point 
Solved Threads: 0
stackOverflow's Avatar
stackOverflow stackOverflow is offline Offline
Junior Poster

Re: blink a text??

 
0
  #7
Oct 28th, 2005
Hi again,

I just wanted to know if i can blink a text in graphics mode also .. only because i want to set the font size and change font color.

And i think thats ok if it is from the web, atleast somebody is trying to help me out!
Imagination was given to man to compensate him for what he is not; A sense of humour to console him for what he is..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC