AboutDon Schullian Expertise I`ve worked in BASIC since the Commodore days and maintain a web site part of which is devoted to helping others with thier problems. I`m proficient in all versions of PowerBASIC but cross over to QuickBASIC and Qbasic frequently.
Expert: Don Schullian Date: 7/18/2008 Subject: pop up menu in Qbasic
Question I am a physician and i am writting a program in qbasic to I want to create an interface using pop up menus and the mouse.
Thank you , expert!
Answer Hi Doc,
First of all you've chosen a difficult language to accomplish this in as Qbasic doesn't play well with interrupts and ASM code which is needed to get the mouse working in DOS. Plus, if you're going to do anything with patients' records then you're going to have a whale of a time securing the data from prying eyes. Lastly, DOS is (regrettably) on its way out. Vista doesn't like it and MS7 is on the way. But....
Pop-up windows are fairly easy in DOS as all you need do is capture the portion of the screen where the pop-up will go, do the pop-up, then replace the data under it. This can be done in several ways using different tools. You can access the screen in memory using ASM code, you can switch pages, or some other more difficult measures.
If you're working in text mode I've got some code on my web page that will show you how to copy data from one page to the other. www.dasoftvss.com go to the BASIC page then down at the bottom of the list under [DOS] Page Copy. This should get you started.