drag-and-drop with mouse?

Paul Gr pauls_postbus at hotmail.com
Sat Apr 21 17:43:54 UTC 2007


oops..., resending previous email because the reply is embedded as hidden text
 
 
hi stephani,
You will require some inline script to implement drag-and-drop or other mouse operations. Note that real drag and drop operations might experience screen flickering when the drawing operations (including the background) are complex or when the computer is slow. Another approach is the point and click operation on source and destination area's, which is less demanding. I've used the HitTest function of the slide object in several scripts to determine which area was selected. The nice thing about this is that the slide object can also be an empty slidetext object. (I.e. a dummy slidetext object to define a selectable area.) To change the position of a slide object you can modify the X and Y properties of the objects before the slide is drawn.However, you don't have to use slide objects if you can draw the screen yourself with some inline script. An example script can be found at: http://www.psy.vu.nl/download/menu/xml/eprime_script_tohx.xml
 
best,PaulVU University, Amsterdam
 



> From: sma215 at nyu.edu> To: eprime at mail.talkbank.org> Date: Thu, 19 Apr 2007 13:33:33 -0500> Subject: drag-and-drop with mouse?> > Hi,> > Just curious. Someone here is wondering if eprime can implement moving around bmp objects (on a slide, say) by using a mouse to click on a bmp/object, drag it to a new location on the screen, and drop in a new location. > > My present thought is to use strHit to compare a click location to a particular object on a slide, bmpX (say, defined as an attribute on a trial list) - based on a sample program at eprime downloads (response areas for mouse input). that would identify which bmp was selected. > > but instead of drag-and-drop, the subject could then click a destination location on another part of the screen - is there any way to then 'move' the selected/first-clicked-on-bmpX to the new location chosen by the second mouse click? are predefined destination locations the way to go, as in, treat the destinations as objects on a slide, too (say, 9 are allowed), and then display a different slide state to reflect the new location of bmpX?> > any suggestions appreciated.> Thanks, Stephani> > > > Stephani Foraker> *Please note my preferred email address*> sforaker at uchicago.edu> 
_________________________________________________________________
http://www.live.nl
Windows Live Messenger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20070421/a79606f8/attachment.htm>


More information about the Eprime mailing list