Hello,
I tried your code but does NOT work for me. I tried in Opera Browser and Ms Edge but I get the same result:
Just to show you the issue, I also added a TextGadget (and it works...).
Code:
Code: Select all
If OpenWindow(0, 0, 0, 322, 80, "StringGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
NomalGadget = StringGadget(#PB_Any, 8, 10, 306, 20, "Normal StringGadget...")
MonospaceGadget = StringGadget(#PB_Any, 8, 35, 306, 20, "Monospace StringGadget...")
labelGadget = TextGadget(#PB_Any, 8, 60, 306, 20, "Monospace TextGadget...")
f = LoadFont(#PB_Any, "Courier", 16)
SetGadgetFont(MonospaceGadget, FontID(f))
SetGadgetFont(labelGadget, FontID(f))
EndIf
I'm using SpiderBasic 2.51 (x86).
//// EDIT: CONFIRMED, it works in FLAT theme. Yes, maybe is a bug. Thank you (I work in flat mode for now).