Thread: Setting text colour

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    44

    Setting text colour

    How do you set text colour?
    And also how would I create a * over a key entered, a I'm making a passwod program and dont want the password viewable?
    I'm using Bloodsheds Dev-C++ Compiler.

    JamMan..

    Curious if I can live forever? CLICK HERE

  2. #2
    There's an example on my webpage. Check here: http://lightatdawn.freeyellow.com/Prog.HTML

    As to the asterisk/password question; You'll need to write your own function for getting input and displaying an '*' at the correct location.

    Here... have some pseudo code:

    do
    {
    get_input_here();
    add_input_to_finished_string();
    display_asterisk();
    }while(input_from_user != RETURNKEY);
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. Setting text cursor in Tubo C
    By sureshkumarct in forum C Programming
    Replies: 1
    Last Post: 12-16-2006, 01:16 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 06:21 PM
  5. Setting ListBox text
    By BubbleMan in forum Windows Programming
    Replies: 5
    Last Post: 09-19-2001, 07:09 AM