Re: Q: Can you cause the sceen to REDRAW itself
Posted in 1995
Topics: General Discussion
In <44uddn$j5i@hella.stm.it> marco greco <mar.greco@agora.stm.it> writes: > >Paul J Harrison <paul@roan.co.uk> wrote: >>On 27 Sep 1995, Ancil Bethelmy for development wrote: >>> I would like to know if there is a way to make a screen that has garbage left >>> over from opening and closing forms automatically redraw itself without the >>> user typing "^R" to redraw. >> >>I'm no C programmer and I'm new to Informix, but I wonder if this can be >>done by using C's ungetc() function?? >> >>I tried playing around with this idea when trying to get some control >>over the "input array" statement. (ie: put a paging keystroke out onto >>"stdin", and then read it, to make it automatically page etc.) >>But I couldn't get it to work, Informix just ignores it, or I was doing >>something wrong. >> >>Is there anything in this ? ... or am I on a wild goose chase ? >>Any thoughts you wonderful C programming type people ? >> >>(Informix Ver 4-SE) >> >>- >> >>|| Paul J Harrison || || >>|| paul@roan.co.uk || Locomotive Driver - "Is this a hold-up?" || >>||Roan Technology Ltd|| Emmet Brown - "It's a science experiment!" || >>|| Wokingham U.K. || || > > >Interesting. I tried to do the same thing to simulate multiple accept >keys in input statements. The idea is that I want the user to press a >particular key to signal that besides accepting the input, he wants to do >something else (perhaps a print...). On key doesn't work becouse it >doesnt jump to the relevant after field clauses. >I did try ungetc() with no results. >I tried something crazy like temporarily forcing the standard input to >read from a file, from which the program could read an accept key after a >particular key had been detected, but this is clumsy. > >Any other idea, out there? > Hi! I guess your problem is that you get some junk in your screen after closing some forms, now when you close a form, let us say form_two you get some junk like "EM" on the screen at particular position of it, since "EM" is on that form and some how it likes to stick on screen. How to get rid of it ? Try this Open a form in a window "w_form_two", Now the problem would be when you do clear window "w_form_two" the contents will not be cleared, you can clear window other than the present window on the stack, so open a temp window 'w_temp" and clear window "w_form_two' then close window "w_form_two" and close window "w_temp" Result the junk on the screen would disapper. Good luck !