Tab control behaves differently on device than desktop

Discussion in 'Questions (Windows Mobile)' started by AHeroMenKill, Jun 18, 2008.

  1. AHeroMenKill

    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can use the Door library to change the alignment on the desktop.
    Code:
    '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
     
  3. AHeroMenKill

    AHeroMenKill New Member Licensed User

    That's excellent, Thanks for your help! :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice