This is interesting.

I think you should put it on the openlaszlo blog.

jrs



On Nov 23, 2005, at 7:46 PM, Henry Minsky wrote:

Dear Ann Landers,

I'm
looking at trying to implement what Tucker proposed with adding
<contextmenu> and <contextmenuitem> tags for
the right click menu API.


I could write the code in javascript, in the LFC style, and write a schema entry for the lzx interface manually, but when I started doing that I said to myself "this feels like a bad idea, maybe we shouldn't be extending the schema manually anymore, is there a better way to implement this feature?".
There's also the question of class names -- I would like to name these
LzContextMenu and LzContentMenuItem. The names
"contextmenu" and "contextmenuitem" are dangerously close to the Flash class
names of "ContextMenu" and "ContextMenuItem",differing only by
capitalization. (and would in fact collide if you try to compile for swf6,
but for the fact that these classes were not builtin in swf6).



 I'd like this to be part of the LFC, but I'd like to
write the code in lzx, so I don't have to write the schema entry for it by
hand. However, we currently don't have
any code in the LFC (ORL?) which is written in lzx, so I don't really know
how to proceed with this. I could modify the
compiler so that this lzx file is <include>'ed in every file, or maybe this
should be an optional library API that needs to be
manually included?


I suppose I could name the classes LzContextMenu and LzContextMenuItem, and
you would refer to them
by those tag names, but that would be inconsistent with the
way we've been naming lzx classes in component libraries. Or I could add an
entry to the magic name translation table in LaszloInitiator's
ConstructorMap to map "contextmenu => LzContextMenu"






--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to