Question: How do I change the font type and font size of the complete calendar display? As per documentation, this should work using SetFont but I don't get the desired effect. See screenshots below: The font does not change at all -> only the calendar window height is affected, getting somewhat smaller?! What am I doing wrong? Thanks for helping out!
Code: Select all
CreateCalendar()
{
global Calendar := Gui('-MinimizeBox', GetTitle())
Calendar.MarginX := -18
Calendar.MarginY := -15
;Calendar.SetFont("s14 bold", "Tahoma")) <-- this does not really work!
Calendar.Add('MonthCal', '4 R3 W-4')
Calendar.OnEvent('Close', DestroyCalendar)
Calendar.OnEvent('Escape', DestroyCalendar)
SetTimer(UpdateTitle, 1000)
}
Initial display without SetFont (commented out)
Calendar display with Calendar.SetFont("s14 bold", "Tahoma")