muß ich wie in meinem Code nach jedem StrinGadget() die Farbe angeben oder ist es möglich die Farbe für diese gesamte Zeile mit einem Befehl zu wählen.
Code: Alles auswählen
If OpenWindow(0,100,100,610,120,"Fussball-Tipp",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
StringGadget (0,5,14,60,14,"Spiel",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (0,#PB_Gadget_BackColor,$000000)
SetGadgetColor (0,#PB_Gadget_FrontColor,$0000FF)
StringGadget (1,70,14,50,14,"1",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (1,#PB_Gadget_BackColor,$000000)
SetGadgetColor (1,#PB_Gadget_FrontColor,$0000FF)
StringGadget (2,130,14,50,14,"2",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (2,#PB_Gadget_BackColor,$000000)
SetGadgetColor (2,#PB_Gadget_FrontColor,$0000FF)
StringGadget (3,190,14,50,14,"3",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (3,#PB_Gadget_BackColor,$000000)
SetGadgetColor (3,#PB_Gadget_FrontColor,$0000FF)
StringGadget (4,250,14,50,14,"4",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (4,#PB_Gadget_BackColor,$000000)
SetGadgetColor (4,#PB_Gadget_FrontColor,$0000FF)
StringGadget (5,310,14,50,14,"5",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (5,#PB_Gadget_BackColor,$000000)
SetGadgetColor (5,#PB_Gadget_FrontColor,$0000FF)
StringGadget (6,370,14,50,14,"6",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (6,#PB_Gadget_BackColor,$000000)
SetGadgetColor (6,#PB_Gadget_FrontColor,$0000FF)
StringGadget (7,430,14,50,14,"7",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (7,#PB_Gadget_BackColor,$000000)
SetGadgetColor (7,#PB_Gadget_FrontColor,$0000FF)
StringGadget (8,490,14,50,14,"8",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (8,#PB_Gadget_BackColor,$000000)
SetGadgetColor (8,#PB_Gadget_FrontColor,$0000FF)
StringGadget (9,550,14,50,14,"9",#PB_String_BorderLess|#PB_Text_Center|#PB_String_ReadOnly)
SetGadgetColor (9,#PB_Gadget_BackColor,$000000)
SetGadgetColor (9,#PB_Gadget_FrontColor,$0000FF)
EndIf
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
