David,<div><br></div><div>That makes a lot of sense!</div><div>Thanks for the tip.</div><div><br></div><div>Johannes<br><br>On Tuesday, 19 June 2012 17:01:18 UTC+2, McFarlane, David  wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Johannes,
<br>
<br>Glad you sorted it out.  Just a bit of explanation about the 
<br>":center", that happens when you use an attribute reference (e.g., 
<br>[x]) for an X or Y Posiiton, and I do not think that PST explains 
<br>this anywhere.  Think about it -- When you use an attribute 
<br>reference, EP does not know until run time what position to use.  But 
<br>during design time, it still has to place the object at some example 
<br>position.  Where should it put the object during design time?  The 
<br>":center" merely indicates where the object will appear on the 
<br>*design* surface, and then the object will move to the referred 
<br>position at *run* time.
<br>
<br>And if you like, you could replace ":center" with a position of your 
<br>choice.  E.g., "[x]:25%" would place the object 25% from the left of 
<br>the design surface during design time, while "[x]:150" would place 
<br>the object 150 pixels from the left during design time, and in each 
<br>case would place the object at the value of [x] at run time.  Does 
<br>that clarify things?
<br>
<br>---------------
<br>David McFarlane
<br>E-Prime training 
<br>online:  <a href="http://psychology.msu.edu/Workshops_Courses/eprime.aspx" target="_blank">http://psychology.msu.edu/<wbr>Workshops_Courses/eprime.aspx</a>
<br>Twitter:  @EPrimeMaster (<a href="http://twitter.com/EPrimeMaster" target="_blank">twitter.com/EPrimeMaster</a>)
<br>---------------
<br>
<br>Stock reminder:  1) I do not work for PST.  2) PST's trained staff 
<br>take any and all questions at 
<br><a href="http://support.pstnet.com/e%2Dprime/support/login.asp" target="_blank">http://support.pstnet.com/e%<wbr>2Dprime/support/login.asp</a> , and they 
<br>strive to respond to all requests in 24-48 hours -- this is pretty 
<br>much their substitute for proper documentation, so make full use of 
<br>it.  3) In addition, PST takes questions at their Facebook page 
<br>(<a href="http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683" target="_blank">http://www.facebook.com/<wbr>pages/Psychology-Software-<wbr>Tools-Inc/241802160683</a> 
<br>), and offers several instructional videos there and on their YouTube 
<br>channel (<a href="http://www.youtube.com/user/PSTNET" target="_blank">http://www.youtube.com/user/<wbr>PSTNET</a> ) (no Twitter feed yet, 
<br>though).  4) If you do get an answer from PST staff, please extend 
<br>the courtesy of posting their reply back here for the sake of others.
<br>
<br>
<br>At 6/19/2012 03:48 AM Tuesday, Johannes Bjerva wrote:
<br>>I managed to solve the problem through using a global variable, 
<br>>which is set by the mouse coordinates, rather than an attribute.
<br>>That is to say, the problem was not in the automatic addition of 
<br>>":center", as I first assumed.
<br>>
<br>>Problem solved! :)
<br>>
<br>>
<br>>On Monday, 18 June 2012 21:53:18 UTC+2, Johannes Bjerva wrote:
<br>>Hello,
<br>>
<br>>I am currently developing an experiment in which the participants 
<br>>will click an area of the screen, following which an image should 
<br>>appear in that location.
<br>>
<br>>What I have tried so far is having a slide object containing an 
<br>>image object. In the image object's sub-property pages I've tried to 
<br>>set the X and Y positions to the attributes "[PicPosX]" and
<br>>"[PicPosY]". However, once I click apply, E-Prime automatically 
<br>>changes this to "[PicPosX]:center" and "[PicPosY]:center".
<br>>
<br>>In order to get the coordinates themselves, I have added this 
<br>>inline-code after the slide object:
<br>>Dim theMouseResponseData As MouseResponseData
<br>>Set theMouseResponseData = CMouseResponseData(Slide1.<wbr>InputMasks.Responses(1))
<br>>c.SetAttrib "PicPosX", theMouseResponseData.CursorX
<br>>c.SetAttrib "PicPosY", theMouseResponseData.CursorY
<br>>
<br>>Obtaining the coordinates and setting the attributes seems to work 
<br>>perfectly, since I can see the coordinates in the resulting data files.
<br>>However, the image does not change positions, but remains in the 
<br>>center (most likely due to E-Prime's :center-addition to my attributes).
<br>>
<br>>Any help in solving this problem would, of course, be greatly appreciated.
<br>>
<br>>Kind regards,
<br>>Johannes Bjerva
<br>
<br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/6Z1rJcakLBUJ">https://groups.google.com/d/msg/e-prime/-/6Z1rJcakLBUJ</a>.<br /> 
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />