Change CalendarGadget font

Share your advanced PureBasic knowledge/code with the community.
Randy Walker
Addict
Addict
Posts: 1060
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Change CalendarGadget font

Post 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 :)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: Change CalendarGadget font

Post by BarryG »

Good tip! Thanks.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Change CalendarGadget font

Post by minimy »

Hey! i can lost my glasses now 8)
Really good tip, thanks for share!
If translation=Error: reply="Sorry, Im Spanish": Endif
Post Reply