Hi,
I have tried this class, but I get strange behavior. If I run the debugger and put a breakpoint at line 30:
When I step over the lbl.Padding = padding statement the Tab padding changes on the screen, but when I return from the method back to my code the tab changes back to the default.
Does anyone know what is happening and how I might fix it?
The standard right and left padding for the tab appears to be ~48dip which is a lot of white space. I would like to reduce it to about 24 to fit more tabs on the screen.
Best regards
Rob
I have tried this class, but I get strange behavior. If I run the debugger and put a breakpoint at line 30:
Set Padding Method:
'My code ...
For Each row() As Object In tabPageList
If k = 1 Then
addVegGrp = True
tblVegGrpArg.ID = row(0)
tblVegGrpArg.GroupName = row(1)
Else
addVegGrp = False
End If
TabStrip1.LoadLayout("Page1", row(1))
tbs.SetTabPadding(TabStrip1, Array As Int(0dip, 0dip, 0dip, 0dip) , k - 1)
Activity.AddMenuItem(row(0), "mnu" & k)
k = k + 1
Next
'-----------------------------------------------------------------------------------
'Class Method
'Set the Padding of a Tab
Public Sub SetTabPadding(tabstrip As TabStrip, padding() As Int,Position As Int)
Dim i As Int
For Each lbl As Label In GetAllTabLabels(tabstrip)
If i = Position Then
lbl.Padding = padding <--- Breakpoint here
End If
i = i + 1
Next
End Sub
When I step over the lbl.Padding = padding statement the Tab padding changes on the screen, but when I return from the method back to my code the tab changes back to the default.
Does anyone know what is happening and how I might fix it?
The standard right and left padding for the tab appears to be ~48dip which is a lot of white space. I would like to reduce it to about 24 to fit more tabs on the screen.
Best regards
Rob