Thread: paint program

  1. #1
    <><><><>
    Guest

    paint program

    Hi! im trying to make a paint program using c im having a few problems with outputting the colour selected or even selecting a colour. can someone tell me how to do this? i've got all the mouse routines sorted. any help apprieciated! thanks i'm using borland turbo c

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    If you're using Win API you can use a CHOOSECOLOR struct and the function BOOL ChooseColor(LPCHOOSECOLOR lpcc); to popup a colour selection dialog.

    if you're doing a console application (which I suspect you do since you didn't post in the windows forum) I have no idea how you're solving things (like graphics) so you need to be more specific in your question.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    <><><><>
    Guest
    im using graphics

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by <><><><>
    im using graphics
    Eh? I assume you do since you're doing a paint program...

    bgi?
    vga?
    directx?
    opengl?
    allegro?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    <><><><>
    Guest
    sorry bgi

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    I don't know anything about BGI, sorry.
    I suggest you check the borland help files, or move onto at least VGA since, seriously, BGI sucks in my opinion.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    <><><><>
    Guest
    lol thanks anyway

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  2. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM