From: Mitch S. <mit...@be...> - 2007-06-04 14:13:32
|
On Mon, 2007-06-04 at 08:22 -0500, Eric Just wrote: > I was under the impression that Openlazlo is a programming language > that lets you draw pretty much whatever you want. You can use > predefined widgets, but you can also define your own by drawing and > filling shapes. The program that you write in Openlaszlo is then used > to generate native DHTML or Flash. My beef with canvas-style immediate-mode (procedural) drawing APIs is that while it's easy to draw things with them, it's harder to make those things clickable. I guess you could make each feature its own DrawView, which would make it easy to tell which feature was clicked on, but how well would that scale? Or if you had one big DrawView, you could get the mouse coordinates from the click event handler and do your own hit-testing. But I'd rather not do hit-testing in javascript if it's already been done in C++ for divs. Also, how is DrawView DHTML implemented for IE? I'm getting flash for the DrawView intro. Again, though, I'm speaking mainly from ignorance here, from a cursory skim of the API docs. I'd be interested in seeing a DHTML Laszlo app with a few thousand on-screen interactive elements. Mitch |