On 2/9/06 12:20 AM, "Jeroen van der Putten"
<[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am looking at strange and unexpected behaviour I don't know how to fix:
> 
> I have a multiline Editfield in a window which I allow to accept text
> files through drag and drop.
> 1. Created a 'Textfile' item at Filetypes, looking for extension 'txt'
> 2. In the open function of the Editfield I write:
> self.AcceptFileDrop "TextFile"
> 
> Now, I can import the contents of a text file into this Editfield as
> expected. Great!
> Now, my problem is the Editfield also seems to accept other file formats!
> When I drop a Word-file onto it for example my Editfield converts to an
> embedded 'Word-viewer'...
> 
> Am I doing something wrong or should I exclude all other file types,
> instead of assuming my application
> only does what I tell it to do?
> 
> Can someone explain me how I should approach this problem?
> Thanks!
> Jeroen

Jeroen,

Just a guess based on what you've written...

I think you must specify a MacType. With only a file extension specified,
your EditField will accept other types as well.

Michael

_______________________________________________
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