At 09:00 PM 9/19/2005 +0200, you wrote:

>I'd like to expand usability by allowing users to drop files on my utility
>(in Windows) to automatically launch the application and begin processing
>the file. I haven't been able to figure this out, much like open a file on
>the Mac by dragging a document to its corresponding application.
> I was assuming I had to add a DropObject event to the App (class?), but I
>am unable to do so.

For application level, you instead have to ...
a) file the file extensions you want to accept in the File Types dialog
b) handle those dropped files in the App's OpenDocument handler.
This will then work cross-platform (or should)

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.

What am I missing?

* * * * * * * * * * * * * * * * * * * * * * * * * * *
| 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