Thread: Handling mouse in graphics mode in Turbo C/DOS

  1. #1
    Registered User
    Join Date
    Dec 2006

    Handling mouse in graphics mode in Turbo C/DOS

    I am doing a graphics application in Turbo C/DOS.I need to have mouse support in it.I had already posted a question about capturing mouse in a text mode applicatioan and i got the reply i have to do it do it in graphics mode...It is a data entry has number of labels and text boxes.The text boxes are actually rectangles created using bar3d() function in graphics because the rectangle function is not working..The lables are created using simple textout().When I left-click on a 3dbar(text box) , need to set the text cursor there and be able to start typing from there..This way I need to input all the data and save it.That part I think I can manage..I tried my best but could not set the mouse cursor there..I understand that gotoxy() does not work in graphics mode..I am sending the file as attachment..pls go thru it..and give the necessry advice.Thanks in advance..

  2. #2
    Registered User divineleft's Avatar
    Join Date
    Jul 2006
    you're best bet would be to use a library like ncurses

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    My first question is, do you REALLY mean DOS, or are you casually referring to that nice black rectangle in the middle of your XP desktop with a C:\> prompt as "DOS" (because that isn't DOS at all).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How I can Show the pointer of mouse int 800*600 256 color mode in Turbo C++?
    By hadizadeh in forum A Brief History of
    Replies: 3
    Last Post: 12-12-2001, 07:17 AM
  2. graphics.h under Turbo C
    By newbie17 in forum A Brief History of
    Replies: 7
    Last Post: 11-22-2001, 05:17 AM
  3. Mouse in 800x600 24Bit Mode?
    By Unregistered in forum A Brief History of
    Replies: 16
    Last Post: 11-11-2001, 01:38 AM
  4. graphics help!! for my game under turbo C
    By newbie17 in forum Game Programming
    Replies: 1
    Last Post: 10-26-2001, 01:40 PM
  5. Text in Dos Graphics Mode
    By Frozen_Solid in forum A Brief History of
    Replies: 1
    Last Post: 10-25-2001, 04:16 PM