New topic: 

Dragging and dropping between static text

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

       Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic         Author  
Message       Boboo           Post subject: Dragging and dropping between 
static textPosted: Thu Dec 03, 2009 2:47 am                        
Joined: Wed Dec 14, 2005 3:52 pm
Posts: 54              Newbie here.
I have a project where I would like to drag and drop text between static text 
fields.  I can, of course, drop text on them but can't seem to be able to drag 
text from one to another.  I tried to use the mouse up event but nothing in the 
mouse up event gets executed.  Does anyone know how I might make this work?
-Bob   
                            Top               timhare           Post subject: 
Re: Dragging and dropping between static textPosted: Thu Dec 03, 2009 3:27 am   
                     
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 6872
Location: Portland, OR  USA              MouseUp doesn't happen unless you 
return true from MouseDown (check the manual).  But you don't need mouseup.  In 
MouseDown, you can initiate a dragitem.   
                            Top               Boboo           Post subject: Re: 
Dragging and dropping between static textPosted: Thu Dec 03, 2009 3:54 am       
                 
Joined: Wed Dec 14, 2005 3:52 pm
Posts: 54              Thanks.  I intended to use the mouse down to initiate 
the drag and mouse up to do the drop.  
If I use Return true in the mouse down event the line I had in mouse down to 
change the cursor to the closed hand doesn't work.  Is there another way where 
I can have the cursor change as well as do the drag and drop?   
                            Top               timhare           Post subject: 
Re: Dragging and dropping between static textPosted: Thu Dec 03, 2009 4:12 am   
                     
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 6872
Location: Portland, OR  USA              If you create a DragItem and call 
Drag, why do you need to use MouseUp?  You'll get a Drop event for whatever 
control you drop on.   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 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