You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/06/29 21:00:53 UTC

[GitHub] [royale-asjs] greg-dove opened a new issue #877: Royale needs an emulation of flash.ui.ContextMenu/ContextMenuItem

greg-dove opened a new issue #877:
URL: https://github.com/apache/royale-asjs/issues/877


   Initial thoughts:
   There is some code in TLF/src/main/royale/org/apache/royale/textLayout/dummy but that seems to be just placeholder code. 
   
   Initial thoughts:
   The use case for this is more general beyond TLF. This could be a bead in Basic, which is then used in MXRoyale to support a 'contextMenu' property on UIComponent for javascript.
   
   pseudo-mxml:
   ```
   <MyUIComponent>
     <beads>
       <ContextMenu>
         <ContextMenuItem/>
         <ContextMenuItem/>
       </ContextMenu>
     </beads>
   </MyUIComponent>
   ```
   
   
   Considerations:
   -Access to the native menu items is not available (I believe, based on quick research) in current browsers. That means there is not the possibility to mix new menu items with the native items as there has been with flash player.
   -Firefox and others have had 'experimental' html5 support using contextMenu/menu/menuitem tags that cannot be relied on or used (it is not part of the spec iiuc).
   -Using a specific implementation in html5 (as a 'modal' menu) will allow more customization of menu items than was the case in swf. Suggest we start with something that is compatible and only add greater variation later for html5 (e.g. support for icons) as needed.
   
   
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] greg-dove edited a comment on issue #877: Royale needs an emulation of flash.ui.ContextMenu/ContextMenuItem

Posted by GitBox <gi...@apache.org>.
greg-dove edited a comment on issue #877:
URL: https://github.com/apache/royale-asjs/issues/877#issuecomment-651408097


   > Hi, this could be for Royale Basic so we can use in all sets? not only UIComponent?
   > thanks
   
   Yes, maybe I did not emphasise that enough : that is what I intended with the original comment : 'This could be a bead in Basic, which is then used in MXRoyale'


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] carlosrovira commented on issue #877: Royale needs an emulation of flash.ui.ContextMenu/ContextMenuItem

Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #877:
URL: https://github.com/apache/royale-asjs/issues/877#issuecomment-651398595


   Hi, this could be for Royale Basic so we can use in all sets? not only UIComponent?
   thanks


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] greg-dove commented on issue #877: Royale needs an emulation of flash.ui.ContextMenu/ContextMenuItem

Posted by GitBox <gi...@apache.org>.
greg-dove commented on issue #877:
URL: https://github.com/apache/royale-asjs/issues/877#issuecomment-651408097


   > Hi, this could be for Royale Basic so we can use in all sets? not only UIComponent?
   > thanks
   
   Yes, maybe I did not empahsise that enough : that is what I intended with the original comment : 'This could be a bead in Basic, which is then used in MXRoyale'


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org