<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Selection.setFocus(myButtonID) I think.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
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.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <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<o:p></o:p></span></p>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p>
<div>
<p class=MsoNormal style='margin-left:36.0pt'>Thanks Julian, that explains. <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'>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)?<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'>Elly<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'>On Fri, Oct 24, 2008 at 5:03 PM,
Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>>
wrote:<o:p></o:p></p>
<div>
<div>
<p style='margin-left:36.0pt'><span style='font-size:11.0pt;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><o:p></o:p></p>
<p style='margin-left:36.0pt'><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p style='margin-left:72.0pt'><b><span lang=EN-US style='font-size:10.0pt'>From:</span></b><span
lang=EN-US style='font-size:10.0pt'> <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><o:p></o:p></p>
</div>
<div>
<div>
<p style='margin-left:72.0pt'> <o:p></o:p></p>
<div>
<p style='margin-left:72.0pt'>Hi,<o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'> <o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'>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...<o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'>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.<o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'> <o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'>TIA<o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'> <o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'>Elly<o:p></o:p></p>
</div>
<div>
<p style='margin-left:72.0pt'> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">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><o:p></o:p></p>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><br>
<br clear=all>
<br>
-- <br>
Elly Langewis<br>
courseware developer<br>
Department of Biology<br>
Utrecht University<o:p></o:p></p>
</div>
</body>
</html>