![]() setHeaderColor (Color As Int) As String.setGridLineColor (Color As Int) As String.setFirstDayOfWeek (number As Int) As String 1-7.setCurrentDateColor (Color As Int) As String.setBodyProperties (BodyProperties As ASDatePicker_BodyProperties) As String.Scroll2Date (Date As Long) As String Scrolls to the dateīuilds the view new if the date was not in range.RefreshHeader As String Applies the header properties if any have been changed.Rebuild Clears the DatePicker and builds the DatePicker new.Initialize (Callback As Object, EventName As String) As String.getWeekNumberProperties As ASDatePicker_WeekNumberProperties Call Refresh if you change something.getWeekNameShort As ASDatePicker_WeekNameShort.GetWeekNameByIndex (Index As Int) As String 1 = Sunday.getShowWeekNumbers As Boolean Gets or sets the number of visible weeks.getSelectedEndDate As Long Only in SelectMode "Range".getMonthNameShort As ASDatePicker_MonthNameShort Call Refresh if you change somethingĪS_DatePicker1.MonthNameShort = AS_DatePicker1.CreateASDatePicker_MonthNameShort("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec").getHeaderProperties As ASDatePicker_HeaderProperties.With the following code you can customize the control elements that are visible in the header:ĭim xlbl_Header As B4XView = AS_(0)ĭim xlbl_ArrowLeft As B4XView = AS_(1)ĭim xlbl_ArrowRight As B4XView = AS_(2) getHeaderPanel As B4XView You can customize the appereance of the header.GetFirstDayOfWeek2 (Ticks As Long, FirstDayOfWeek As Int) As Long FirstDayOfWeek:.getBodyProperties As ASDatePicker_BodyProperties.DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String Base type must be Object.CreateASDatePicker_WeekNumberProperties (Width As Float, Color As Int, xFont As B4XFont, TextColor As Int, Text As String) As ASDatePicker_WeekNumberProperties.CreateASDatePicker_WeekNameShort (Monday As String, Tuesday As String, Wednesday As String, Thursday As String, Friday As String, Saturday As String, Sunday As String) As ASDatePicker_WeekNameShort AS_DatePicker1.CreateASDatePicker_WeekNameShort("Mon","Tue","Wed","Thu","Fri","Sat","Sun").CreateASDatePicker_MonthNameShort (January As String, February As String, March As String, April As String, May As String, June As String, July As String, August As String, September As String, October As String, November As String, December As String) As ASDatePicker_MonthNameShort AS_DatePicker1.MonthNameShort = AS_DatePicker1.CreateASDatePicker_MonthNameShort("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec").CreateASDatePicker_HeaderProperties (Height As Float, xFont As B4XFont, TextColor As Int, ButtonIconSize As Float) As ASDatePicker_HeaderProperties.CreateASDatePicker_BodyProperties (xFont As B4XFont, TextColor As Int) As ASDatePicker_BodyProperties.SelectedDateRangeChanged (StartDate As Long, EndDate As Long).CustomDrawDay (Date As Long, Views As ASDatePicker_CustomDrawDay).Initialize Initializes the fields to their default value.IsInitialized As Boolean Tests whether the object has been initialized.Import sure you are using ASViewPager V1.31+ ASDatePicker The is the subclass of FrameLayout class. ![]() Like DatePicker, android also provides TimePicker to select time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |