advansis Active Member Licensed User Longtime User Apr 18, 2020 #1 Hi guys, I need to change TabStripPager dimensions at runtime. I dind't find any way to do it, I suppose I must use reflection (as in GetAllTabLabels, etc.) but don't know what properties and what object to use. PS. Is there any method in javaobjects/reflection to LIST ALL properties/methods? Thanks in advance
Hi guys, I need to change TabStripPager dimensions at runtime. I dind't find any way to do it, I suppose I must use reflection (as in GetAllTabLabels, etc.) but don't know what properties and what object to use. PS. Is there any method in javaobjects/reflection to LIST ALL properties/methods? Thanks in advance
advansis Active Member Licensed User Longtime User Apr 18, 2020 #2 SOLVED. I share my code. Please improve if necessary. B4X: Copy public Sub TabStrip_SetLayout(ts As TabStrip,Left As Int,Top As Int,Width As Int,Height As Int) Dim jo As JavaObject = ts Dim P As Panel=jo.GetFieldJO("vp") P=P.parent P.SetLayout(Left,Top,Width,Height) TabStrip_Refresh(ts) End Sub Last edited: Apr 18, 2020 Upvote 0
SOLVED. I share my code. Please improve if necessary. B4X: Copy public Sub TabStrip_SetLayout(ts As TabStrip,Left As Int,Top As Int,Width As Int,Height As Int) Dim jo As JavaObject = ts Dim P As Panel=jo.GetFieldJO("vp") P=P.parent P.SetLayout(Left,Top,Width,Height) TabStrip_Refresh(ts) End Sub