Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jouke (587)

jouke
  jouke@pvoice.org
http://jouke.pvoice.org/

Jouke has been programming Perl since 1997 and started using Perl to write programs to make life and communication easier for disabled people early 2001. Take a look at his website [pvoice.org] for more information.

Journal of jouke (587)

Wednesday June 28, 2006
04:01 AM

Event handling

[ #30072 ]

I couldn't just leave the code to rest yesterday, so I went a little further. I started working on the (accessible) Event handling.

To make everything as easy as possible, a programmer should normally only worry about one event, namely EVT_OA_SELECT (I'm using OA as the prefix for everything...it stands for Open Accessibility, and currently it's also the name of the module, better suggestions are welcome). EVT_OA_SELECT($object, \&OnSelect) will work like you would expect: if the $object has been selected by the user (in any of the ways that will be defined), it executes the sub OnSelect. If you already have an event handler associated with any control, you can simply use this one beside it and it will do the same.

Tonight I'll implement OA::Config, where you can set/get the configuration of your accessible application (what kind of input device, how many switches, etcetera).

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.