TabControl from ControlsEx

Discussion in 'Questions (Windows Mobile)' started by Zenerdiode, Jun 17, 2017.

  1. Zenerdiode

    Zenerdiode Active Member Licensed User

    I'm using the TabControl from ControlsEx on a desktop application - but visually the selected tab is very difficult to see. Does the TabControl wrap the native TabControl from .Net? If so, I see there are properties for how the tabs are displayed (flatstyle, button etc.) Could these properties be exposed with Door.dll? If so, example code would be appreciated.
     
  2. agraham

    agraham Expert Licensed User

    Setting Appearance to Buttons shows selected tab better than Normal
    Code:
    Sub App_Start
        Form1.Show
        Tab1.New1(
    "Form1"00200100)
        Tab1.AddTabPage(
    "One")
        Tab1.AddTabPage(
    "Two")
        Tab1.AddTabPage(
    "Three")
        Obj1.New1(
    False)
        Obj2.New1(
    False)
        Obj1.Value = Tab1.ControlRef
        Obj1.SetProperty(
    "Appearance""Buttons")
        Obj2.Value = Obj1.GetProperty(
    "SelectedTab")
        
    Msgbox(Obj2.GetProperty("Text"))   
    End Sub
     
    Peter Simpson and Erel like this.
  3. Zenerdiode

    Zenerdiode Active Member Licensed User

    Ah, I was using incorrect parameters in SetProperty. Many Thanks Andrew. :)
     
Loading...