Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!kvancamp@ARDEC.arpa From: kvancamp@ARDEC.arpa (Kenneth Van Camp -FSAC-) Newsgroups: comp.lang.pascal Subject: Re: GRAPH.BIN for hercules card Message-ID: <9513@brl-adm.ARPA> Date: Mon, 28-Sep-87 10:58:25 EDT Article-I.D.: brl-adm.9513 Posted: Mon Sep 28 10:58:25 1987 Date-Received: Tue, 29-Sep-87 04:39:47 EDT Sender: news@brl-adm.ARPA Lines: 26 >Ken I think the problem that you are refering to about the >Graphics toolbox is **not** a bug! The Graphics toolbox uses TYPED >CONSTANTS and if you are running the GT in memory mode, it will only run >the first time correctly because typed constants are only initialized >once. (turbo manual : typed constants) Borland suggests compiling >to a .com file ****WITHOUT***** running the file. And your problems >should go away. > aron_filgers_nelson@cup.portal.com No, not at all the case. I compile directly to a file and run from it, not from memory. Since you say you run it successfully, do you go from graphics mode, back to text mode, back to graphics mode again, through a loop? The only way I've been able to do this (reliably) is by sticking to only the most primitive functions. Any time I try to use the real scaling, things start going haywire -- especially if I try to change the scaling between plots. Major symptom that I was never able to overcome was that the new scale I set didn't take effect until the plot AFTER the one I wanted it for. And I tried MANY combinations, even went so far as setting the scale, entering graphics mode, exiting graphics mode, then entering again. I got frustrated and finally just wrote my own transformations from real to screen coords, and this works fine. But I have to stick to only the most primitive graphics fcns in the toolbox, that work in screen coords only. --Ken Van Camp