At 05:45 PM 3/2/2006 -0600, you wrote:

> Going further, what if you want to distinguish between whether the
> user opens your app directly (by double-clicking the app) and
> whether someone drops something on the app to start it?
>
> I want the main Window to appear when the user starts the app, but
> when a user drops something on the app, I may want it to process
> the file and not open the main Window.
>
> On a drop, the OpenDocument event gets triggered, and starts Open()
> before it processes, but then it's a Catch-22, because that's the
> only place where the main form can start up automatically.

I am certainly not the most expert RB user reading this list but I
think that I can shed some light on this subject if no one else does so.

No, your answer was perfect - thanks!

Every time your application launches the applications Open event is
fired. Typically this is where I will put the code to load

If the application was launched by double clicking the application
icon then the NewDocument event of the application class will be
invoked and it is here that you would present an open dialog if the

If the user double clicks a file owned by the application or drags a
file owned by the application onto the applications icon then instead
of the NewDocument event firing, the OpenDocument event of the
application class is fired and the folderitem is passed as an

You should write manuals (for me)!

* * * * * * * * * * * * * * * * * * * * * * * * * * *
| Garth Hjelte                                      |
| Customer Service Representative, President        |
| Chicken Systems, Inc, Rubber Chicken Software Co. |
| 714 5th Street SE                                 |
| Willmar, MN 56201 USA                             |
|                                                   |
| 800-8-PRO-EPS    Toll Free Order Line (US Only)   |
| 320-235-9798     Tech Support, Sampler Questions  |
|                  International Line               |
| 360-838-7689     Fax                              |
| Product Sales:   [EMAIL PROTECTED]             |
| Product Support: [EMAIL PROTECTED]           |
| Sampler Q+A:     [EMAIL PROTECTED]                |
| Web Page:        www.chickensys.com               |
* * * * * * * * * * * * * * * * * * * * * * * * * * *
_______________________________________________
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>

Reply via email to