> > Thus, when the button receives an "onMouseClick" event, the 
> > "particleFountain.Stop" method is called, which in turns calls 
> > particleFountain.onEvent(command), which is reflected back to the 
> > native code event handler that you registered on creation 
> of "particleFountain."
> 
> So there is no way of directly getting it as an event in my 
> C++ application?
> 
> What I am getting at here is if AWS2 _requires_ the writing 
> of stuff in javascript (which for example means that I will 
> never use it for anything :P) or if I can get the events 
> directly in my application (and if I do I expect them to be 
> delivered in a consistent manner independently of where they 
> origin from).

Let me be clear here.  In order to use AWS2 you have to either create
widgets via Javascript code, or you have to use the XML definition
syntax.  You don't exactly *have* to write any Javascript, except in
defining event/action couples...which is not really writing javascript.
Events which you are interested in will be forwarded to the notification
objects which you register and connect to event generators as sinks.

However, it is important that you understand that *ALL* events are
processed at their terminators in Javascript.  It is not possible for
your native code to ask AWS2's manager to forward events to it.
Technically this could be added in some cases, but it is not something
that I will add.  Nor is it possible to listen for any given event via
AWS2.  The manager understands mouse and keyboard events, period.  It
provides access to mouse and keyboard events, period.  All other events
originate from, and are delivered through, Javascript.

I could technically provide a way to have AWS2 forward unused or unknown
events to the app, but that is silly since AWS2 *receives* events from
your app.  If your app has it's own little events here and there, then
that's where you should handle them.  Why does AWS2 need to know about
them?

All of that being said, if you hate JS and you don't want to use it,
then AWS2 is not really for you.  All of the labor-saving features, the
flexibility, and power of expression come from it's binding with JS.
I'm sorry that you don't like JS, but there are plenty of people who
don't like whatever scripting platform I might possibly choose.

-={C}=-  



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to