Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Nov 21, 2017 6:19 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Window gets minimized and ten can't programmatically restore
PostPosted: Thu May 30, 2013 3:19 pm 
Offline

Joined: Tue Apr 08, 2008 10:02 am
Posts: 95
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Window gets minimized and ten can't programmatically res
PostPosted: Sun Jun 02, 2013 5:32 pm 
Offline
User avatar

Joined: Thu Sep 10, 2009 2:50 am
Posts: 418
Location: Santa Cruz, CA, USA
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group