Le 15 mars 07 à 21:29 Soir, Tom Benson a écrit: > The App.OpenDocument event will fire if the application is launched > by either of the following methods > > 1) a user double clicks a document in the Finder/Explorer, and you > app is the designated editor > 2) a user drags and drops a file onto you apps icon > > So, I'd put this code in the App.OpenDocument event > > if item <> nil then > //show this document > else > App.NewDocument //and put code to handle createing the default > docuemtn inside the App.NewDocuemnt event handler > end
If item is nil (so no document has been dropped or double-clicked), then the OpenDocument event won't fire (instead, the NewDocument will fire automatically). Also, there is no Item parameter in the Open event (in case you misspelled). I am missing something in recent versions? _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
