GMan Well-Known Member Licensed User Longtime User Feb 27, 2014 #1 I want to make a tab(1) of a tabhost only visible, if the scrollview of the previous tab(0) has reached nearly 100%. I use this code: Code: Copy Sub InfosSV_ScrollChanged (Position As Int) If InfosSV.ScrollPosition > 6050 Then Msgbox("Reached","6050") ' TabHost1.???????.Enabled = True End If End Sub So, the MsgBox appears an the end of the SV, but how can i disable / enable a (previous disabled) Tab(1) of the TabHost ?
I want to make a tab(1) of a tabhost only visible, if the scrollview of the previous tab(0) has reached nearly 100%. I use this code: Code: Copy Sub InfosSV_ScrollChanged (Position As Int) If InfosSV.ScrollPosition > 6050 Then Msgbox("Reached","6050") ' TabHost1.???????.Enabled = True End If End Sub So, the MsgBox appears an the end of the SV, but how can i disable / enable a (previous disabled) Tab(1) of the TabHost ?
mangojack Expert Licensed User Longtime User Feb 27, 2014 #2 download TabHostExtras library .. (see above ,similar threads) then ... Code: Copy Dim TabExtras as TabHostExtras TabExtras.setTabEnabled2(TabHost1,False,2) Explore the TabHostExtras other methods as well .. TabColours, TabVisible etc .... Last edited: Feb 27, 2014 Upvote 0
download TabHostExtras library .. (see above ,similar threads) then ... Code: Copy Dim TabExtras as TabHostExtras TabExtras.setTabEnabled2(TabHost1,False,2) Explore the TabHostExtras other methods as well .. TabColours, TabVisible etc ....
GMan Well-Known Member Licensed User Longtime User Feb 28, 2014 #3 Muchas Gracias - that's it. Nice Lib - only EXPANDS the existing one Upvote 0