Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

buttons in ms-dos using C

mr. Jmr. J Posts: 18Member
How do I create buttons in ms-dos using C?

Comments

  • stoberstober Posts: 9,765Member ✭✭✭
    : How do I create buttons in ms-dos using C?
    :
    [blue]You don't. You need a graphics OS for that, like Windows[/blue]
  • WaltPWaltP Posts: 335Member
    : How do I create buttons in ms-dos using C?
    :
    You have to draw/create the buttons within your program using graphic calls for lines, rectangles, colors. I have a DOS program at http://wpattinson.com/bombsrch.zip you can download to see this technique in operation.

    Walt


  • PharabeePharabee Posts: 84Member
    : : How do I create buttons in ms-dos using C?
    : :
    : You have to draw/create the buttons within your program using graphic calls for lines, rectangles, colors. I have a DOS program at http://wpattinson.com/bombsrch.zip you can download to see this technique in operation.
    :
    : Walt
    :
    :
    :
    Hi, I Build a Graphic lib for the VESA mode 0x118 (1024x768x24Bit) here. I will upload it as soon as Posible to my website. You can download my assembler and compile a file named Pmode2, there is a sample code how to made a button, you have to Run it from MS-DOS realmode since it entering to Pmode. http://city.boleh.com/~vampire_strikes/DownLoad/DownLoad.htm.
  • blipblip Posts: 756Member
    Pharabee, VBE 2.0+ doesn't require OEMs to support the pre-defined mode resolutions so you'd have to search for them at runtime using the API for maximum compatibility. I'm writing a 16-bit Pascal SVGA library that uses 386 instructions and sadly it's not as easy anymore as setting up mode 13h and drawing to one segment, but it allows for a great many resolutions without them having to be initially defined by VESA. This is my reference: http://www.vesa.org/vbe3.pdf
Sign In or Register to comment.