Fehlermeldung:
""Beispiel_1.PB"" : The specified output is NULL (0 vaule)
Code: Alles auswählen
InitSprite()
InitKeyboard()
LoadFont(0,"Courier New",25,#PB_Font_Bold)
LoadFont(1,"Courier New",10)
Breite = 30
OpenScreen(640,480,32,"Keyboard Example")
ClearScreen(0,0,0)
StartDrawing(ScreenOutput())
FrontColor(40,40,255)
BackColor(0,0,0)
DrawingFont(UseFont(0))
Locate(20,220)
DrawText("Drücke eine beliebige")
StopDrawing()
FlipBuffers()
ExamineKeyboard()
If KeyboardPushed(#PB_Key_All)
EndIf
Repeat
StartDrawing(ScreenOutput()) ;Hier haut's mich auf!!
FrontColor(40,40,255)
BackColor(0,0,0)
DrawingFont(UseFont(1))
Locate(20,10)
DrawText("Pfeiltaste LIKNS, um Box nach links auszubauen"+Chr(10)+"Pfeiltaste RECHTS, um Box nach rechts auszubauen"+Chr(10)+"ESCAPE, um Programm zu beenden.")
Box(10,300,Breite,50,RGB(0,0,255))
If KeyboardPushed(#PB_Key_Left)
Breite = Breite +1
EndIf
If KeyboardPushed(#PB_Key_Right)
Breite = Breite -1
EndIf
Until KeyboardPushed(#PB_Key_Escape)

