<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText48532 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I can look into it. I wonder whether this is the right way to do things - the selection is usually set by the user, and I'd expect the user in Xerte to move the focus around using the tab key.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Elly Langewis<BR><B>Sent:</B> Mon 27/10/2008 16:54<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> Re: [Xerte] default button<BR></FONT><BR></DIV>
<DIV>
<DIV>Ok now I do not understand it anymore.</DIV>
<DIV> </DIV>
<DIV>1. For a TextEntry I can only set the focus in a script icon that is at the same level as the TextEntry (hanging off the interaction icon). When I don't set the focus, the user has to click at the TextEntry box first. When I do set the focus, the user can type the answer right away. When I put the script icon on any other place, this does not work.</DIV>
<DIV>If I track the focus with selection.getFocus() it is undefined, before and after I set the focus. But it works.</DIV>
<DIV> </DIV>
<DIV>2. If I try to do the same for a button response, the focus is not changed. (no focus, or if another button had the focus, it still has)</DIV>
<DIV> </DIV>
<DIV>3. The perpetual menu button has the focus, even if there is an interaction with a number of other buttons (the menu intself), and I press one of these (for paragraph 1). After that, the menu button still has the focus.</DIV>
<DIV> </DIV>
<DIV>Can anybody shed a light on this? It feels like I am doing several things wrong, but how should I do it then?</DIV>
<DIV> </DIV>
<DIV>Thanks in advance,</DIV>
<DIV> </DIV>
<DIV>Elly<BR><BR></DIV>
<DIV class=gmail_quote>On Mon, Oct 27, 2008 at 12:42 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,</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><FONT color=#888888>
<DIV>Elly<BR><BR></DIV></FONT>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<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" target=_blank>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>
<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 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></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Elly Langewis<BR>courseware developer<BR>Department of Biology<BR>Utrecht University<BR></DIV></BODY></HTML>