View previous topic :: View next topic |
Author |
Message |
johannes
Joined: 21 Jan 2011 Posts: 65 Location: Leimen, Germany
|
Posted: Fri Nov 25, 2011 11:01 am Post subject: |
|
|
This is a great thread (works also without include <window.ins>)
My additional question: I want the window "redirect" automatically close itself when the main program is finished by Stop or End.
How to get that? |
|
Back to top |
|
 |
Wilfried Linder
Joined: 14 Nov 2007 Posts: 314 Location: D�sseldorf, Germany
|
Posted: Fri Nov 25, 2011 12:11 pm Post subject: |
|
|
Usually you will use %lw if you open more than one window. Let all %lw's be connected with the same integer variable (handle), say ctrl. Now, if you stop your program, just write
Code: |
ctrl = 0
call window_update@(ctrl) |
before end.
Regards - Wilfried |
|
Back to top |
|
 |
johannes
Joined: 21 Jan 2011 Posts: 65 Location: Leimen, Germany
|
Posted: Fri Nov 25, 2011 5:27 pm Post subject: |
|
|
Hello Wilfried,
well, I tried call window_update@(0) which doesn't close, but you are right:
ctrl = 0
call window_update@(ctrl)
is closing the window
Thanks |
|
Back to top |
|
 |
|