Tab control behaves differently on device than desktop

AHeroMenKill

New Member
Licensed User
Hi,

I have a program which uses a tab control. On the desktop the tabs display on the top of the control but on the device they are on the bottom.... Anyone any ideas?

Cheers...


Mike
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can use the Door library to change the alignment on the desktop.
B4X:
'obj is an Object.
Sub Globals
    'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
    tab.New1("form1",30,30,100,100)
    ChangeAlignment("tab")
End Sub

Sub ChangeAlignment (TabName)
    If CPPC Then Return
    obj.New1(false)
    obj.FromControl(Control(TabName,TabControl).ControlRef)
    obj.SetProperty("Alignment","Bottom")
End Sub
 
Top