1. Win32Lib: repaint screen on move 2nd window
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Sep 03, 2000
- 506 views
- Last edited Sep 04, 2000
How can I make "new" windows not erase the contents of original windows if the "new" windows are moved or resized? In my "examples gateway" app, when an example is selected to run, its window behaves somewhat badly with respect to the original window: if the running example is moved, it deletes the contents of the original window (& if it's moved often enough quickly enough, it leaves copies of itself behind, until they get erased about 12 seconds later). I looked at "repaintWindow(id)", but I can't figure out how/when to *tell* it to do so. Dan Moyer
2. Re: Win32Lib: repaint screen on move 2nd window
- Posted by =?iso-8859-1?B?U2tvZGE=?= <tone.skoda at SIOL.NET> Sep 04, 2000
- 479 views
Whatever you put in onPaint, it will be executed when window needs to paint itself; if some other window covered it. You can even get the rectangle of window that needs to be repainted, if you don't want to repaint the whole window. ----- Original Message ----- From: Dan B Moyer <DANMOYER at PRODIGY.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, September 04, 2000 5:00 AM Subject: Win32Lib: repaint screen on move 2nd window > How can I make "new" windows not erase the contents of original windows if > the "new" windows are moved or resized? > > In my "examples gateway" app, when an example is selected to run, its window > behaves somewhat badly with respect to the original window: if the running > example is moved, it deletes the contents of the original window (& if it's > moved often enough quickly enough, it leaves copies of itself behind, until > they get erased about 12 seconds later). > > I looked at "repaintWindow(id)", but I can't figure out how/when to *tell* > it to do so. > > Dan Moyer
3. Re: Win32Lib: repaint screen on move 2nd window
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Sep 04, 2000
- 441 views
Skoda, My problem is in knowing how to *tell* it that it needs to be repainted, that's what I can't figure out how to do. I can't use "onClose" (or at least I *think* I can't), because the windows aren't "mine", they are other programs that my program has caused to run. Dan ----- Original Message ----- From: "Skoda" <tone.skoda at SIOL.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, September 04, 2000 1:58 AM Subject: Re: Win32Lib: repaint screen on move 2nd window > Whatever you put in onPaint, it will be executed when window needs to paint > itself; if some other window covered it. You can even get the rectangle of > window that needs to be repainted, if you don't want to repaint the whole > window. > > ----- Original Message ----- > From: Dan B Moyer <DANMOYER at PRODIGY.NET> > To: <EUPHORIA at LISTSERV.MUOHIO.EDU> > Sent: Monday, September 04, 2000 5:00 AM > Subject: Win32Lib: repaint screen on move 2nd window > > > > How can I make "new" windows not erase the contents of original windows if > > the "new" windows are moved or resized? > > > > In my "examples gateway" app, when an example is selected to run, its > window > > behaves somewhat badly with respect to the original window: if the running > > example is moved, it deletes the contents of the original window (& if > it's > > moved often enough quickly enough, it leaves copies of itself behind, > until > > they get erased about 12 seconds later). > > > > I looked at "repaintWindow(id)", but I can't figure out how/when to *tell* > > it to do so. > > > > Dan Moyer
4. Re: Win32Lib: repaint screen on move 2nd window
- Posted by wolfgang fritz <wolfritz at king.igs.net> Sep 04, 2000
- 468 views
> My problem is in knowing how to *tell* it that it needs to be repainted, > that's what I can't figure out how to do. I can't use "onClose" (or at > least I *think* I can't), because the windows aren't "mine", they are other > programs that my program has caused to run. Since you are actually running two different programs here, with the second one messing up the screen of the first, you can probably only use a timer routine in the first, which redraws everything in the first once per second, or whatever... Wolf
5. Re: Win32Lib: repaint screen on move 2nd window
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Sep 04, 2000
- 455 views
All, I followed how Wolfgang ran examples in his Tutorial more closely, using "jump to", & ran them that way, and for some reason that solved my problem. Dunno why, but it works. Dan ----- Original Message ----- From: "Dan B Moyer" <DANMOYER at prodigy.net> To: "Euphoria Mail List" <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, September 03, 2000 8:00 PM Subject: Win32Lib: repaint screen on move 2nd window > How can I make "new" windows not erase the contents of original windows if > the "new" windows are moved or resized? > > In my "examples gateway" app, when an example is selected to run, its window > behaves somewhat badly with respect to the original window: if the running > example is moved, it deletes the contents of the original window (& if it's > moved often enough quickly enough, it leaves copies of itself behind, until > they get erased about 12 seconds later). > > I looked at "repaintWindow(id)", but I can't figure out how/when to *tell* > it to do so. > > Dan Moyer >
6. Re: Win32Lib: repaint screen on move 2nd window
- Posted by =?iso-8859-1?B?U2tvZGE=?= <tone.skoda at SIOL.NET> Sep 04, 2000
- 463 views
- Last edited Sep 05, 2000
> My problem is in knowing how to *tell* it that it needs to be repainted, > that's what I can't figure out how to do. I can't use "onClose" (or at > least I *think* I can't), because the windows aren't "mine", they are other > programs that my program has caused to run. Ok, let me get this straight, you want to tell the window to repaint itself? Use sendMessage(window,WM_PAINT ,0,0). And what's the difference if window is the one your program started or just any? Window is window. You want to repint your first window when the window you ran is closed?
7. Re: Win32Lib: repaint screen on move 2nd window
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Sep 04, 2000
- 480 views
Skoda, I'm pretty sure I have solved my problem: I followed how Wolfgang ran examples in his Tutorial more closely, using "jump to", & ran them that way, and for some reason that seems to work just fine. But I'm pleased to know about "sendMessage(window,WM_PAINT ,0,0)", in case I need it some other time. Thanks. And no, I wanted to make sure a newly opened window did not erase the previously opened & still open window if the second were moved around over it; but that seems to be solved now. Dan ----- Original Message ----- From: "Skoda" <tone.skoda at SIOL.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, September 04, 2000 11:42 AM Subject: Re: Win32Lib: repaint screen on move 2nd window > > My problem is in knowing how to *tell* it that it needs to be repainted, > > that's what I can't figure out how to do. I can't use "onClose" (or at > > least I *think* I can't), because the windows aren't "mine", they are > other > > programs that my program has caused to run. > > Ok, let me get this straight, you want to tell the window to repaint itself? > Use sendMessage(window,WM_PAINT ,0,0). > And what's the difference if window is the one your program started or just > any? > Window is window. > You want to repint your first window when the window you ran is closed?