Page 1 of 1

Change CalendarGadget font

Posted: Thu Sep 12, 2024 10:16 am
by Randy Walker
BIG Thanks to RSBasic Moderator for his/her posts here I was able to figure out how to enlarge the calenderGadget so that I can actually read it without the WinKey + [+] hotkey. Those posts can be found here:
viewtopic.php?p=509399&hilit=change+fon ... et#p509399
And here is what I came up with:

Code: Select all

EnableExplicit

LoadFont(1, "Segoe UI", 25)

If OpenWindow(0, 0, 0, 500, 450, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CalendarGadget(1, 5, 5, 490, 440)
  SetWindowTheme_(GadgetID(1), @"", @"")
  
  SetGadgetFont(1, FontID(1))
  
  Repeat
    Select WaitWindowEvent()
      Case #PB_Event_CloseWindow
        End
    EndSelect
  ForEver
EndIf
with a subject line above that makes it easy to find :)

Re: Change CalendarGadget font

Posted: Thu Sep 12, 2024 12:26 pm
by BarryG
Good tip! Thanks.

Re: Change CalendarGadget font

Posted: Sat Sep 14, 2024 10:11 pm
by minimy
Hey! i can lost my glasses now 8)
Really good tip, thanks for share!