<div>Hi,</div>
<div> </div>
<div>I got it to work with the rs property without quotes, for a text response. I do not succeed to set the focus to another perpetual button. Strange.</div>
<div> </div>
<div>Elly<br><br></div>
<div class="gmail_quote">On Mon, Oct 27, 2008 at 12:22 PM, Elly Langewis <span dir="ltr"><<a href="mailto:e.a.langewis@gmail.com">e.a.langewis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi Julian,</div>
<div> </div>
<div>Whatever I type as myButtonID - ID, rs, name, or '_level0.engine.IFC.FW_ENT.Int_MC7.but9' - the focus does not change (debug(Selection.getFocus()). Any ideas what I could be doing wrong? As the get does work, I think the set should work too.</div>
<div> </div><font color="#888888">
<div>Elly</div></font>
<div>
<div></div>
<div class="Wj3C7c">
<div> </div>
<div> <br><br><br></div>
<div class="gmail_quote">On Fri, Oct 24, 2008 at 4:53 PM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Selection.setFocus(myButtonID) I think.</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">You can listen for rootIcon.onKeyDown to listen for keypresses, so you can have an event responses for y and n and the yes / no buttons as well. Being able to define the action key would be useful – I'll look at that next week.</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p style="MARGIN-LEFT: 36pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Elly Langewis<br>
<b>Sent:</b> Friday, October 24, 2008 4:48 PM<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] default button</span></p></div>
<div>
<div></div>
<div>
<p style="MARGIN-LEFT: 36pt"> </p>
<div>
<p style="MARGIN-LEFT: 36pt">Thanks Julian, that explains. </p></div>
<div>
<p style="MARGIN-LEFT: 36pt">Is it possible to set the focus to a certain button? And is it possible to make a button react to a certain key pressed, like when I have two buttons, yes and no, and want the user to be able to press Y or N (besides making a third response to catch that)?</p>
</div>
<div>
<p style="MARGIN-LEFT: 36pt"> </p></div>
<div>
<p style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm">Elly</p></div>
<div>
<p style="MARGIN-LEFT: 36pt">On Fri, Oct 24, 2008 at 5:03 PM, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<div>
<div>
<p style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: #1f497d">It's built in accessibility. It will only respond to keys whilst it has the focus. When you click elsewhere, the focus moves away from the button and it doesn't respond to keypresses. All the interaction responses can be controlled with the keyboard.</span></p>
<p style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p style="MARGIN-LEFT: 72pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Elly Langewis<br>
<b>Sent:</b> Friday, October 24, 2008 3:41 PM<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] default button</span></p></div>
<div>
<div>
<p style="MARGIN-LEFT: 72pt"> </p>
<div>
<p style="MARGIN-LEFT: 72pt">Hi,</p></div>
<div>
<p style="MARGIN-LEFT: 72pt"> </p></div>
<div>
<p style="MARGIN-LEFT: 72pt">I've got a perpetual button ('Menu') in my Entry Frame. For some reason, when I have used the button (just once), this button will also get pressed when I hit the space bar. As I have not found yet how to let a button react to key responses I was quite surprised...</p>
</div>
<div>
<p style="MARGIN-LEFT: 72pt">Does anyone know what caused this behaviour? It disappeats after using a text entry response, but after hitting the button again it reacts to the space bar again.</p></div>
<div>
<p style="MARGIN-LEFT: 72pt"> </p></div>
<div>
<p style="MARGIN-LEFT: 72pt">TIA</p></div>
<div>
<p style="MARGIN-LEFT: 72pt"> </p></div>
<div>
<p style="MARGIN-LEFT: 72pt">Elly</p></div>
<div>
<p style="MARGIN-LEFT: 72pt"> </p></div></div></div></div></div>
<p style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a></p></div>
<p style="MARGIN-LEFT: 36pt"><br><br clear="all"><br>-- <br>Elly Langewis<br>courseware developer<br>Department of Biology<br>Utrecht University</p></div></div></div></div><br>_______________________________________________<br>
Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Elly Langewis<br>courseware developer<br>Department of Biology<br>Utrecht University<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Elly Langewis<br>
courseware developer<br>Department of Biology<br>Utrecht University<br>