Real Software Forums
http://forums.realsoftware.com/

Window gets minimized and ten can't programmatically restore
http://forums.realsoftware.com/viewtopic.php?f=7&t=48022
Page 1 of 1

Author:  feralminded [ Thu May 30, 2013 3:19 pm ]
Post subject:  Window gets minimized and ten can't programmatically restore

I have a program that launches another application by calling FolderItem.Launch. When this happens within a second or so the launching program minimizes itself and shows up in the bottom bar as grayed-out. The Mac then switches to Finder? (this is what shows up in the top-bar). There seems to be no way within the program for me to now restore the application (or prevent it from minimizing in the first place). I've tried Window.Restore, Window.Show, Window.Visible, Window.Refresh. I've tried all of these in a timer I fire off as well just in case that worked better. Nothing works. The application is still running and doing what it otherwise does but there's no good way to get the window to show other than clicking on it which is completely sub-optimal. So two questions.

#1. Is there a way to launch another application without minimizing the launching application? This would obviate the second problem entirely.

#2. How do I get my application to self-restore?

Any and all help would be appreciated.

Author:  doofus [ Sun Jun 02, 2013 5:32 pm ]
Post subject:  Re: Window gets minimized and ten can't programmatically res

Can you reproduce this in a small app?

I tried
dim f As Folderitem = GetOpenFolderitem("")
f.Launch
and the selected app opened normally.

You could also try applescript to launch the app.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/