New topic: 

Strange Drag and Drop Problem

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

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       Karen           Post subject: Strange Drag and Drop 
ProblemPosted: Tue Aug 25, 2009 6:46 pm                        
Joined: Fri Sep 30, 2005 8:53 am
Posts: 633              I'm having a strange issue that maybe someone can point 
me in the right direction to solve. (OSX 10.4.11 PPC, RB2009 r3)

I have BevelButton subclass that acts as a color picker control. If you do an 
option Drag you can drop the color (as RawData) onto another instance of that 
button and it takes on that color.

When you put two instances of this class on a  window you can drag and drop 
colors between them just fine... and that is true for a document window or 
modal dialog.

Now however I have a complicated window with 35 such controls. The drag and 
drop works fine as long as I do Window.Show

But If I try to use it as a modal dialog (no matter what frame type) where the 
only change in code is from Show to showmodal, I can drag, but the drop is NOT 
accepted by other instances... In the debugger I see that the line with 
AcceptRawDataDrop IS being executed.

Because it does not happen in a simple project, I don't know how to 
troubleshoot this, nor can I really report it as a bug. I guess it could be my 
code and not a bug, but I don't see how!!!

Anybody see this kind of thing before?

Thanks,
- Karen   
                            Top               mojiferous           Post 
subject: Re: Strange Drag and Drop ProblemPosted: Tue Aug 25, 2009 9:56 pm      
                  
Joined: Sat Nov 24, 2007 3:09 pm
Posts: 64              My first guess would be because of the modal window -- 
usually modal windows will "take over" the UI, since their meant for things 
that require user input... They usually lock out all other windows. What are 
you trying to do with the window? And could it be solved by using a non-modal 
window or a floating window?     
_________________
Mojiferous Industries, now 300% more Mojifertastic!  
                            Top               Karen           Post subject: Re: 
Strange Drag and Drop ProblemPosted: Tue Aug 25, 2009 10:04 pm                  
      
Joined: Fri Sep 30, 2005 8:53 am
Posts: 633              mojiferous wrote:My first guess would be because of the 
modal window -- usually modal windows will "take over" the UI, since their 
meant for things that require user input... They usually lock out all other 
windows. What are you trying to do with the window? And could it be solved by 
using a non-modal window or a floating window?

No because it's a dialog to create a "line style" and needs to be modal...

However I found the problem... If I call Window.ShowModal from the App open 
event teh drop does not work. If I call AFTERWARD from another window window.

I was only calling it from App.Open for testing!

- karen   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 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