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 2017/11/28 02:31:16 UTC

[GitHub] justinmclean commented on issue #93: No easy cross platform way to set or unset focus on a Button

justinmclean commented on issue #93: No easy cross platform way to set or unset focus on a Button
URL: https://github.com/apache/royale-asjs/issues/93#issuecomment-347394210
 
 
   Pull request #93 contains a focus bead and adds it to the express TextButton.
   
   Sample use:
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:js="library://ns.apache.org/royale/express"
                   applicationComplete="init()">
   
       <fx:Script><![CDATA[
           public function init():void {
               important.focus();
           }
           ]]></fx:Script>
   
       <js:valuesImpl>
           <js:SimpleCSSValuesImpl/>
       </js:valuesImpl>
       
       <js:initialView>
           <js:View percentWidth="100" percentHeight="100">
               <js:HContainer>
                   <js:TextButton text="One"  />
                   <js:TextButton text="Two"  />
                   <js:TextButton id="important" text="Default" />
               </js:HContainer>
           </js:View>
       </js:initialView>
   
   </js:Application>
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services