New topic in General: 

Finishing with shell returns to wrong window

SteveW - Wed Apr 30, 2008 5:38 am

<http://forums.realsoftware.com/viewtopic.php?t=22131>
                                                                                
                                                                                
My program is calling another program, a report writer, using a Shell in 
synchronous mode. When it's called the report writer displays a small splash 
screen with a progress bar and once it has output the requested report the 
splash screen closes.

The trouble I'm having is that when the report writer screen closes focus goes 
to my programs main window which is not the window that ran the shell, the 
window that did run the shell is then hidden behind the main window. Sometimes 
my program also disappears from the taskbar when this happens but I can still 
Alt-Tab to it.

I have tried adding Self.Show at the end of the procedure that runs the shell 
but to no avail.

Any suggestions would be appreciated.

(RB Pro 2008r1 on XP)                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                        




-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to