example >
Code: Select all
If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_ScreenCentered)
TextGadget(1, 10, 10, 480, 380, "Frame", 0)
StringGadget(2, 20, 30, 200, 20, "", 0)
ButtonGadget(3, 230, 30, 100, 20, "Button", 0)
SetGadgetColor(1, RGB(255, 0, 0))
SetGadgetStyle(1, "15px time")
SetGadgetColor(2, RGB(255, 255, 0))
SetGadgetStyle(2, "30px time")
SetGadgetColor(3, RGB(0, 255, 0))
SetGadgetStyle(3, "12px roman")
EndIf