Hi All,
Please ABMDateTimePicker is not showing the date selection control when inside a Tab. But it is working when directly on page cell. How can i resolve this?
Perhaps am missing something my code is:
Please ABMDateTimePicker is not showing the date selection control when inside a Tab. But it is working when directly on page cell. How can i resolve this?
Perhaps am missing something my code is:
B4X:
Dim tabs As ABMTabs
tabs.Initialize(page, "tabs", "")
' create the tabs As ABMContainer.
tabs.AddTab("tab1", "Data", BuildTabContainer("tab1"),3,3,3,12,12,12,True,True, "")
' add To row
page.Cell(3,1).AddComponent(tabs)
Sub BuildTabContainer(id As String) As ABMContainer
Dim Tabc As ABMContainer
Tabc.Initialize(page, id, "tabpagewhite")
Tabc.AddRows(5,True,"").AddCells12(1,"")
Tabc.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
Dim inpt15 As ABMDateTimePicker
'DateTime.DateFormat = "YYYY-MM-DD"
Dim NewDate As Long = DateTime.Now
'Log(NewDate)
inpt15.Initialize(page, "inpt15", ABM.DATETIMEPICKER_TYPE_DATE, NewDate, "Date of Birth", "")
inpt15.CancelText = "Back"
inpt15.PickText = "OK"
inpt15.TodayText = "Today"
inpt15.Language = "en"
inpt15.ReturnDateFormat = "YYYY-MM-DD" ' <--- see demo source code For settings
inpt15.ReturnTimeFormat = "HH:mm" ' <--- see demo source code For settings
inpt15.FirstDayOfWeek = 0
Tabc.Cell(1,1).AddComponent(inpt15)
Tabc.Refresh
Return Tabc
End Sub