Set Button Rect Keyword
Keyword to update the RECT structure of
a button previously defined with
is the arbitrary name for a region on the screen that will generate a response
of that name,
is the left most coordinate of the region,
N2 the top most, N3
is one more than
the right most and N4
one more than the bottom (ie, a standard windows RECT structure).
can be real as per the graphics keywords. Whereas the original definition of the button name in <2Did>
did not have + or - in front of the name here one or the other of them is required.
This keyword allows one to have 2Did buttons that are moved on the screen without
having to have scads of different button definitions and mapping them in and out
which in the case of arbitrarily located buttons (as in our
Corsi Block Tapping example)
is flat out impossible without gross compromises in experiment design.
NOTE: I recommend the use of the <2Did
checkoverlapping> option when setting buttons up for use with
<sbr> as there was an issue with the Corsi
Block Tapping task not seeing one or two blocks every now and then that was
actually caused by one of the blocks being defined twice. While you might
not make such a mistake better safe than sorry beating your
head against the wall looking for gremlins like I just did for the last few