FrameContainer Font Text!
Posted: Wed Jan 07, 2026 6:00 pm
The FrameContainer Font Text is not drawn properly if the FrameContainer is inside a Framecontainer!
No worries if it's in another type of container.
Tested with PB 6.21 x64 on Windows 11
No worries if it's in another type of container.
Tested with PB 6.21 x64 on Windows 11
Code: Select all
If OpenWindow(0, 0, 0, 500, 220, "FrameContainer Font Text", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
;LoadFont(0, "Segoe UI", 12, #PB_Font_Italic)
;SetGadgetFont(#PB_Default, FontID(0))
FrameGadget(0, 20, 60, 200, 120, "FrameContainer_0", #PB_Frame_Container)
CloseGadgetList()
FrameGadget(1, 240, 20, 240, 180, "FrameContainer_1", #PB_Frame_Container)
FrameGadget(2, 20, 40, 200, 120, "FrameContainer_2", #PB_Frame_Container)
TextGadget(3, 10, 30, 180, 80, "The FrameContainer Font Text is not displayed properly if the FrameContainer is inside a Framecontainer !")
SetGadgetColor(3, #PB_Gadget_FrontColor, RGB(255, 0, 0))
CloseGadgetList()
CloseGadgetList()
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf