Esteve Member Licensed User Jul 21, 2016 #1 Hi, How can I obtain the dimensions of a tab from code if I have created it in the Visual Designer? Thanks.
Hi, How can I obtain the dimensions of a tab from code if I have created it in the Visual Designer? Thanks.
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2016 #2 Are you asking about the Tab header or the tap "page"? The correct way is to load layouts as the tab pages and use anchors to fill the available space. Upvote 0
Are you asking about the Tab header or the tap "page"? The correct way is to load layouts as the tab pages and use anchors to fill the available space.
Esteve Member Licensed User Jul 22, 2016 #3 Hi Erel, Thank you for answering. I refer to size of the page. I load the Layouts as you say, but if my TabStrip does not have size 100% of the Activity or panel: How I can obtain these dimesiones? Do I need to use Reflection or Javaobject? Maybe I am confused with something... Thanks Upvote 0
Hi Erel, Thank you for answering. I refer to size of the page. I load the Layouts as you say, but if my TabStrip does not have size 100% of the Activity or panel: How I can obtain these dimesiones? Do I need to use Reflection or Javaobject? Maybe I am confused with something... Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2016 #4 Create another layout with a panel that fills its parent. Load it with TabStrip1.LoadLayout. The page size is the same as the panel's size. Upvote 0
Create another layout with a panel that fills its parent. Load it with TabStrip1.LoadLayout. The page size is the same as the panel's size.