You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2021/04/28 10:18:49 UTC

[royale-asjs] branch develop updated: Implementation of getTabAt in TabNavigator.as

This is an automated email from the ASF dual-hosted git repository.

pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new fab5f54  Implementation of getTabAt in TabNavigator.as
fab5f54 is described below

commit fab5f5444e0e9ee7f8f59e5cf1d4b1144a31025e
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Wed Apr 28 15:18:41 2021 +0500

    Implementation of getTabAt in TabNavigator.as
---
 .../MXRoyale/src/main/royale/mx/containers/TabNavigator.as         | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as
index c96788f..769439a 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as
@@ -25,6 +25,7 @@ import mx.controls.Button;
 import mx.core.Container;
 import mx.core.EdgeMetrics;
 import mx.managers.IFocusManagerComponent;
+import mx.controls.TabBar;
 
 import org.apache.royale.core.IBeadView;
 import org.apache.royale.core.IChild;
@@ -413,11 +414,13 @@ public class TabNavigator extends ViewStack implements IFocusManagerComponent
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    protected var tabBar:TabBar;
     public function getTabAt(index:int):Button
     {
         // TODO
-        trace("cacheAsBitmap not implemented");
-        return null;
+        //trace("cacheAsBitmap not implemented");
+        //return null;
+		return Button(tabBar.getChildAt(index));
     }