ASCalendarAdvanced1.HeaderColor = xui.Color_Blue
ASCalendarAdvanced1.BodyColor = xui.Color_Blue
ASCalendarAdvanced1.BottomColor = xui.Color_Blue
ASCalendarAdvanced1.OtherMonthBackgroundColor = xui.Color_Red
Dear Alexander,In the next few weeks the following things will be done:
- Performance improvements
- a slimmed down variant of lazy loading, since many pages lead to considerable performance losses
- BugFixing if any are available
You can set a range of months (start and end) - All important functions are moved to a separate module
- The normal ASCalendar View is published, which works without ViewPager
- Here's what it makes possible:
- View attachment 117182
- You can place the normal ASCalendar view in a list as many times as you want
- All features and functions from the advanced version are available in the normal version thanks to its own module and I only need to extend a codebase
no, it's just a label above the view.How to have Month name and year on the top of the calendar, is this a property?
Private Sub ASCalendarAdvanced1_VisibleRangeChange(StartDate As Long,EndDate As Long)
Dim p As Period
p.Days = 8
xbblbl_current_month.Text = $"[b]${DateUtils.GetMonthName(DateUtils.AddPeriod(StartDate,p))} [color=#2D8879]${DateTime.GetYear(DateUtils.AddPeriod(StartDate,p))}[/color][/b]"$
End Sub
Dear Alexander,no, it's just a label above the view.
"xbblbl_current_month" is this label.
In this case it is a BBCodeLabel.
B4X:Private Sub ASCalendarAdvanced1_VisibleRangeChange(StartDate As Long,EndDate As Long) Dim p As Period p.Days = 8 xbblbl_current_month.Text = $"[b]${DateUtils.GetMonthName(DateUtils.AddPeriod(StartDate,p))} [color=#2D8879]${DateTime.GetYear(DateUtils.AddPeriod(StartDate,p))}[/color][/b]"$ End Sub
No, because this is a image from the internet as inspiration.Can you please send me code project of
The code here is from a project of mine.no, it's just a label above the view.
"xbblbl_current_month" is this label.
In this case it is a BBCodeLabel.
B4X:Private Sub ASCalendarAdvanced1_VisibleRangeChange(StartDate As Long,EndDate As Long) Dim p As Period p.Days = 8 xbblbl_current_month.Text = $"[b]${DateUtils.GetMonthName(DateUtils.AddPeriod(StartDate,p))} [color=#2D8879]${DateTime.GetYear(DateUtils.AddPeriod(StartDate,p))}[/color][/b]"$ End Sub
Ok, but I don't find the event VisibleRangeChange of ASCalendarAdvanced in order to put your code...No, because this is a image from the internet as inspiration.
The code here is from a project of mine.
Open the Designer -> Right Click on the ASCalendarAdvanced View on the form -> Events -> VisibleRangeChangebut I don't find the event VisibleRangeChange of ASCalendarAdvanced in order to put your code...
Dear Alexander,No, because this is a image from the internet as inspiration.
The code here is from a project of mine.
ASCalendarAdvanced1.ExtraInfosTextProperties.TextFont = xui.CreateDefaultFont(8)
ASCalendarAdvanced1.WeekNameShort = ASCalendarAdvanced1.CreateASCalendarAdvanced_WeekNameShort("Lun","Mar","Mer","Jeu","Ven","Sam","Dim")
ASCalendarAdvanced1.MonthNameShort = ASCalendarAdvanced1.CreateASCalendarAdvanced_MonthNameShort("Jan","Fév","Mar","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Déc")
ASCalendarAdvanced1.ShowOtherMonths =False
ASCalendarAdvanced1.UpdateBody
ASCalendarAdvanced1.UpdateHeader
ASCalendarAdvanced1.ShowFirstWeekOfMonthInFirstRow = True
Dim p_1 As Period : p_1.Months = -1
Dim p_2 As Period : p_2.Months = 1
ASCalendarAdvanced1.SetLimitRange(DateUtils.AddPeriod(DateTime.Now,p_1),DateUtils.AddPeriod(DateTime.Now,p_2))
ASCalendarAdvanced1.CreateCalendar
Private Sub ASCalendarAdvanced1_VisibleRangeChange(StartDate As Long,EndDate As Long)
Log(" ASCalendarAdvanced1_VisibleRangeChange Event")
Dim p As Period
p.Days = 8
xbblbl_current_month.Text = $"[b]${DateUtils.GetMonthName(DateUtils.AddPeriod(StartDate,p))} [color=#2D8879]${DateTime.GetYear(DateUtils.AddPeriod(StartDate,p))}[/color][/b]"$
End Sub
I removed ASViewPager lib as you said in #94 the calendar can work without itCheck the Version of ASViewPager.
#94 is not a change log, it's a sneak preview for the future. ASCalendarAdvanced can't work without ASViewPager.I removed ASViewPager lib as you said in #94 the calendar can work without it
Right, it's better with ASViewPager, but your calendar worked pretty well without this lib....#94 is not a change log, it's a sneak preview for the future. ASCalendarAdvanced can't work without ASViewPager.
???CalendarAdvanced
The calendar can do what you see and read. What you make of it is up to you. By design, it is only a viewer.Hello, may I know if the calendar can handle scheduling for two or more people and have a recurring task on the schedule? Thanks in advance.
set AppointmentType1BottomAppointmentTyp2Top to falseOnly a question: Is it possible to have the text of the 'Appointmentype2' under the day and not over ? I trued something with AppointmentType2_Itemproprieties without success.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?