New topic: 

Can't drop a file on a my window...

<http://forums.realsoftware.com/viewtopic.php?t=46399>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        BrianOBrien          Post subject: Can't drop a file on a my 
window...Posted: Mon Dec 31, 2012 12:37 pm                                 
Joined: Wed Jul 07, 2010 2:55 pm
Posts: 631
Location: University Of Calgary, Faculty Of Medicine                I am trying 
to make a simple app that works on files that are dropped on my main window.
I have hooks in DragEnter, DragExit, DragOver and DropObject.
However when I run the application and try to drop a file onto the application, 
none of the events are firing.

Am I suppose to set a property somewhere that says that I accept drag and drop 
on my window?      
_________________
If at first you don't succeed... Try REALBasic.  
                             Top                DaveS          Post subject: 
Re: Can't drop a file on a my window...Posted: Mon Dec 31, 2012 12:40 pm        
                         
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4379
Location: San Diego, CA                in your WINDOW OPEN event you need to 
put 


me.AcceptFileDrop
me.AcceptMacDataDrop
me.AcceptPictureDrop
me.AcceptRawDataDrop
me.AcceptTextDrop


which ever one (or combo) is appropriate for you application

same thing applies if you want to drop things on specific controls (such as a 
canvas)





[NOTE : asking me the exact same question in a PRIVATE MESSAGE is not going to 
provide a different answer]      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to