TabControl from ControlsEx

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.
 

agraham

Expert
Licensed User
Longtime User
Setting Appearance to Buttons shows selected tab better than Normal
B4X:
Sub App_Start
    Form1.Show
    Tab1.New1("Form1", 0, 0, 200, 100)
    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
 
Top