lun, 04 Jan 2010, Ian Clark skribis:
> I have a listbox called "panel". As rows of "panel" are selected I
> want to provide details of the selection elsewhere on the form (called
> "topend").
> 
> Clicking a line fires the event: topend_panel_select, which I can use
> to do what I need. I would like pressing key: downarrow to fire this
> event too. But the arrow keys do not seem to cause listbox events --
> at least not ones that topend_default can see. And they don't update
> globals: panel, panel_select either. (Is this just a Mac problem?)
> 
> 1. How do I trap (arrow) keystrokes?

no, you can't

> 
> 2. Where should I start looking for a reference list of events for a
> given control?
> 

most control only support the 'button' event. list-alike also support
'select' event.  isigraph support many events. please read the help on
wd commands

> 3. Has anyone written a sampler gui illustrating the various controls
> available, with stub handlers for the commoner events?

the demo for controls should already contained what you are looking for.

If you are willing to put a lot effect into it, it is possible to use
isigraph to build your own listbox with more custom events. You can
get some idea by browsing the listview or grid in jwiki.  That being
said, I prefer waiting for gtk support in J7.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to