I am developing a date picker class,It has been basically completed,Function is similar to the DatePicker of B4J.The running interface is as follows:
In the class, I used the layout file,It works fine in the Button_Click code.However, you must run Sleep (0) in the B4XPage_Created code before you can work properly.
Like the following code:
I don't know where the problem is, please help me.Thanks!
Note: B4A.DependsOn=DateUtils,SQL,StringUtils,ScrollView2D,Table
In the class, I used the layout file,It works fine in the Button_Click code.However, you must run Sleep (0) in the B4XPage_Created code before you can work properly.
Like the following code:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Sleep(0)
zDatePicker1.Language="chinese"
zDatePicker1.Width=130dip
zDatePicker1.Height=25dip
zDatePicker1.PickerPanelWidth=200dip
zDatePicker1.PickerPanelHeight=200dip
zDatePicker1.TextSize=14
zDatePicker1.Text="09/06/2024"
End Sub
Note: B4A.DependsOn=DateUtils,SQL,StringUtils,ScrollView2D,Table
Attachments
Last edited: