gettingstarted
[Top] [All Lists]

Re: Win32 app - Double-clicking on doc icon opens app in new window

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Win32 app - Double-clicking on doc icon opens app in new window
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Thu, 30 Jun 2005 21:43:27 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <20050630234713 dot 74952 dot qmail at web60415 dot mail dot yahoo dot com>
What would be great now is if on double-clicking on
the second document's icon (of the same app);
a)if it is the already opened document, don't open
another window but bring that window frontmost, or
b) if it is a different document (of the same app)then
also open that document in another window, and bring
that window frontmost.

How do I implement that?

Now that you have the two IPCSockets connecting, it's just a matter of getting them to communicate the information across.

If there are folder items in the OpenDocument event, then .Write the folder item paths to the other application. If there are no items in the OpenDocument event, then .Write a string that means "bring to front".

In the other IDE, read these strings and handle them as appropriate.

HTH!

~Aaron
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>