Board index » delphi » Graphical Mess Ups

Graphical Mess Ups

Hey,
I've created a stock control system that uses a graphical HCI,
but when I try to manipulate certain files, the top-half of the
screen scrolls up, leaving grey blocks where it once was. After
it has finished the file operation, everything seems fine, apart
from the messy screen. I would appreciate it if anyone can tell
my why this might be happening (attempting to use a non-existant
file, etc).

Thanks in advance

James

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

 

Re:Graphical Mess Ups


JRS:  In article <177bbeea.cd77e...@usw-ex0105-038.remarq.com> of Sun, 5
Mar 2000 14:23:03 in news:comp.lang.pascal.borland, Jim <james_darleyNOj

Quote
aS...@hotmail.com.invalid> wrote:
>Hey,
>I've created a stock control system that uses a graphical HCI,
>but when I try to manipulate certain files, the top-half of the
>screen scrolls up, leaving grey blocks where it once was. After
>it has finished the file operation, everything seems fine, apart
>from the messy screen. I would appreciate it if anyone can tell
>my why this might be happening (attempting to use a non-existant
>file, etc).

Could it be that you are causing writes as text, rather than as
graphics. to the screen?  Perhaps under error circumstances only?

If you normally run the program as C:\...> prog, try C:\...> prog > nul

--
? John Stockton, Surrey, UK.  j...@merlyn.demon.co.uk   Turnpike v4.00   MIME. ?
 <URL: http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
 <URL: ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ;
 <URL: http://www.merlyn.demon.co.uk/clpb-faq.txt> Pedt Scragg: c.l.p.b. mFAQ.

Re:Graphical Mess Ups


Quote
Jim wrote:

> Hey,
> I've created a stock control system that uses a graphical HCI,
> but when I try to manipulate certain files, the top-half of the
> screen scrolls up, leaving grey blocks where it once was. After
> it has finished the file operation, everything seems fine, apart
> from the messy screen. I would appreciate it if anyone can tell
> my why this might be happening (attempting to use a non-existant
> file, etc).

> Thanks in advance

> James

> * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
> The fastest and easiest way to search and participate in Usenet - Free!

I think you have somewhere in your source code commands like "WRITELN"
or "READLN". This commands cause a line feed, and for this reason you
have a grey bar on the screen. And the whole graphic screen moves
down.
If there is something like that in your source code
   GOTOXY(1,12);
   WRITELN(hello);
the screen will be devided by a grey bar.

I hope this helps

regards

Martin
--
 Martin Stahl
 e-mail: kram...@uplink.de
 http://www.user.uplink.de/krampus

Other Threads