Setting text colour

This is a discussion on Setting text colour within the C++ Programming forums, part of the General Programming Boards category; How do you set text colour? And also how would I create a * over a key entered, a I'm ...

  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
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    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, 12: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, 05:21 PM
  5. Setting ListBox text
    By BubbleMan in forum Windows Programming
    Replies: 5
    Last Post: 09-19-2001, 07:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21