I also wish you understood the event system better :)
What is "hover" event? Events like API, can be low level
and high level, which you generate in your code for
consumption by your high level handlers.

Windows sends events (messages) indiscreminately,
while Java won't send any events, unless you register
a handler for each event (or group thereof).
(J Windows using MFC is similar to Java though).
To make it work, J wd "subscribes" at compile time to all 
supported events. Then to avoid the complication of
maintaining the repertoir of events available to each
control, it does a clever thing: it delegates the decision
to wdhandler, which determines by reflection (!) whether
the control has a handler and invokes it. Very neat I think.

There are two reasons why it's impossible to process
future unsupported events: in Java, that's a programmatic
operation requiring concrete classes, etc., not just an event "ID";
and different events have additional parameters to pass back,
like mouse coordinates, etc.

--- Henry Rich <[EMAIL PROTECTED]> wrote:

> I wish I understood the event system better.  My primitive
> view is that the OS sends J a bunch of events, and J decides
> which ones it will handle and which it will pass to user code,
> and discards the rest.
> 
> Like Bill says, nowadays J can handle a lot of events.
> Why not have a foreign that lets the J app indicate what
> events it will handle?  Then there will be no need
> for system modification every time a user makes a
> good case for an event.  The call would be something like
> 
> EVENT_HOVER 9!:51 <'hover'
> 
> to start handling the HOVER event.
> 
> For events associated with a form, the event will pass to wdhandler
> to be processed in the form's locale.  The right argument to
> 9!:51 is the name of the handler (wdhandler will append
> form_  and child_  as appropriate).
> 
> For other events, the given handler will be called directly.
> 
> Henry Rich
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of bill lam
> > Sent: Saturday, August 19, 2006 10:25 AM
> > To: Beta forum
> > Subject: [Jbeta] scrollbar event
> > 
> > can scrollbar trigger an event while dragging the thumb? IMO 
> > hardware is much
> > faster than that of 10 years ago, more events can be handled 
> > when running J.
> > 
> > -- 
> > regards,
> > bill


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to