drag-and-drop with mouse?
Paul Gr
pauls_postbus at hotmail.com
Sat Apr 21 17:38:07 UTC 2007
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. To avoid this problem you could use two single-click operations on source and destination area’s. 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 sub-objects can also be an empty slidetext subobject. (I.e. a dummy slidetext subobject to define a selectable area.) To change the position of a slide sub-object you can modify the X and Y properties of the objects before the slide is drawn.
However, you don’t have to use slides if you can draw the screen yourself with some inline script. An example of this approach can be found at: http://www.psy.vu.nl/download/menu/xml/eprime_script_tohx.xml
best,
Paul Groot
VU 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>
_________________________________________________________________
Probeer Live.nl
Probeer Live.nl: zoekmachine van de makers van MSN!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20070421/a20e29a2/attachment.htm>
More information about the Eprime
mailing list