B4J Question [ABMaterial] not show ABMDateTimePicker [solved]

giannimaione

Well-Known Member
Licensed User
Longtime User
B4J 9.50
ABMaterial 5.00
B4X:
public Sub BuildPage()
''''
'''
'''
Page.AddRows(3,true,"").AddCellsOS(2,0,0,0,6,6,6,"")
Page.AddRows(1,true,"").AddCellsOS(1,0,0,0,10,10,10,"").AddCellsOS(1,0,0,0,2,2,2,"")
Page.BuildGrid ' IMPORTANT!
end sub
''
''
''
public Sub ConnectPage()
' i fill page.cell(1, cell) for cell 1 to 4 with ABMCombo and it is OK
'
'
'here i add a ABMDateTimePicker
page.Cell(3, 1).AddComponent(makeDate)
'and finally
page.Refresh
page.FinishedLoading
page.RestoreNavigationBarPosition
end sub
'


private sub makeDate as ABMDateTimePicker
Dim mydate As ABMDateTimePicker
Dim NewDate As Long = DateTime.Now
mydate.Initialize(page, "datebilling", ABM.DATETIMEPICKER_TYPE_DATETIME, NewDate, "date billing", "")
mydate.CancelText = "Back"
mydate.PickText = "OK"
mydate.TodayText = "Oggi"
mydate.Language = "it"
mydate.ReturnDateFormat = "DD/MM/YYYY"
return mydate
End Sub

but I don't see the component ABMDateTimePicker
where am i wrong?
Cattura.PNG
 

Attachments

  • Cattura.PNG
    Cattura.PNG
    17.6 KB · Views: 115

giannimaione

Well-Known Member
Licensed User
Longtime User
[Solved]

in real code i used a wrong theme
B4X:
mydate.Initialize(page, "datebilling", ABM.DATETIMEPICKER_TYPE_DATETIME, NewDate, "date billing", "BadTheme") '<---
 
Upvote 0
Top