﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » resizing cross</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 23 Sep 2026 17:52:14 GMT</lastBuildDate><ttl>20</ttl><item><title>resizing cross</title><link>https://forums.millisecond.com/Topic25177.aspx</link><description>Hello, is there a quick way to resize the two dimension of a cross separately with the arrow keys?&lt;br/&gt;e.g. making vertical line longer with top arrow key, shorter with low arrow key; horizontal line longer with right arrow key and shorter with left arrow key?&lt;br/&gt;&lt;br/&gt;Thank you</description><pubDate>Wed, 27 Jun 2018 10:18:58 GMT</pubDate><dc:creator>tecnika</dc:creator></item><item><title>RE: resizing cross</title><link>https://forums.millisecond.com/Topic25178.aspx</link><description>&lt;div data-id="25177" class="if-quote-wrapper" unselectable="on" data-guid="1530118865525"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25177" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25177" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25177" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;tecnika - Wednesday, June 27, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25177"&gt;&lt;div class="if-quote-message-margin"&gt;Hello, is there a quick way to resize the two dimension of a cross separately with the arrow keys?&lt;br/&gt;e.g. making vertical line longer with top arrow key, shorter with low arrow key; horizontal line longer with right arrow key and shorter with left arrow key?&lt;br/&gt;&lt;br/&gt;Thank you&lt;a class="if-quote-goto quote-link" href="#" data-id="25177"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You would define two &amp;lt;shape&amp;gt; elements that make up your cross -- one horizontal line, one vertical line. You can then manipulate those lines' sizes separately based on the response. Something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1=sizetrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ h = 20px&lt;br/&gt;/ v = 20px&lt;br/&gt;/ stepsize = 5px&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;203 = left&lt;br/&gt;205 = right&lt;br/&gt;200 = up&lt;br/&gt;208 = down&lt;br/&gt;&amp;lt;trial sizetrial&amp;gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.sizetrial.response == 203 &amp;amp;&amp;amp; values.h &amp;gt;= 0) values.h -= values.stepsize;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.sizetrial.response == 205) values.h += values.stepsize;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.sizetrial.response == 200 &amp;amp;&amp;amp; values.v &amp;gt;= 0) values.v -= values.stepsize;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.sizetrial.response == 208) values.v += values.stepsize;&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=clearscreen, h, v]&lt;br/&gt;/ validresponse = (203, 205, 200, 208, 28)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.sizetrial.response!=28) trial.sizetrial;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape h&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ erase = false&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (values.h, 10px)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape v&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ erase = false&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (10px, values.v)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 27 Jun 2018 10:18:58 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>