[Xerte] default button

Elly Langewis e.a.langewis at gmail.com
Mon Oct 27 11:42:21 GMT 2008


Hi,

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.

Elly

On Mon, Oct 27, 2008 at 12:22 PM, Elly Langewis <e.a.langewis at gmail.com>wrote:

> Hi Julian,
>
> 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.
>
> Elly
>
>
>
>
> On Fri, Oct 24, 2008 at 4:53 PM, Julian Tenney <
> Julian.Tenney at nottingham.ac.uk> wrote:
>
>>  Selection.setFocus(myButtonID) I think.
>>
>>
>>
>> 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.
>>
>>
>>
>>
>>
>>
>>
>> *From:* xerte-bounces at lists.nottingham.ac.uk [mailto:
>> xerte-bounces at lists.nottingham.ac.uk] *On Behalf Of *Elly Langewis
>> *Sent:* Friday, October 24, 2008 4:48 PM
>> *To:* Xerte discussion list
>> *Subject:* Re: [Xerte] default button
>>
>>
>>
>> Thanks Julian, that explains.
>>
>> 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)?
>>
>>
>>
>> Elly
>>
>> On Fri, Oct 24, 2008 at 5:03 PM, Julian Tenney <
>> Julian.Tenney at nottingham.ac.uk> wrote:
>>
>> 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.
>>
>>
>>
>> *From:* xerte-bounces at lists.nottingham.ac.uk [mailto:
>> xerte-bounces at lists.nottingham.ac.uk] *On Behalf Of *Elly Langewis
>> *Sent:* Friday, October 24, 2008 3:41 PM
>> *To:* Xerte discussion list
>> *Subject:* [Xerte] default button
>>
>>
>>
>> Hi,
>>
>>
>>
>> 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...
>>
>> 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.
>>
>>
>>
>> TIA
>>
>>
>>
>> Elly
>>
>>
>>
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>>
>>
>>
>> --
>> Elly Langewis
>> courseware developer
>> Department of Biology
>> Utrecht University
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>>
>
>
> --
> Elly Langewis
> courseware developer
> Department of Biology
> Utrecht University
>



-- 
Elly Langewis
courseware developer
Department of Biology
Utrecht University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20081027/49c3c0c8/attachment.html


More information about the Xerte mailing list