salut
voila un exemple tirer de mon projet (l'horloge dasn sujet aplication)
Code : Tout sélectionner
StartDrawing( WindowOutput())
Locate(4, 0)
DrawingMode(1)
DrawingFont(LoadFont(1, police$, 20))
FrontColor(rouge3, vert3, bleu3)
Locate (4, 65)
DrawingFont(LoadFont(1, police$, 13))
DrawText("PC allumé depuis:")
Locate (4, 82.5)
DrawText(Str(StartTime / 1000) + "sec ou " + Str(StartTime / 60000) + "min")
Locate (4, 100)
DrawingFont(LoadFont(1, police$, 11))
DrawText("CPU:" + Str(CPU) + "% Ram:" + Str(Pourcentage) + "%")
Locate (4, 120)
DrawingFont(LoadFont(1, police$, 10))
DrawText("libre:" + Str(libre) + "Mo Occupee:" + Str(Occupee) + "Mo")
Box (210, 20, 10, 100, RGB ( rouge2, vert2, bleu2))
Box(210, 120, 10, -Pourcentage, RGB ( rouge3, vert3, bleu3))
Box (225, 20, 10, 100, RGB ( rouge2, vert2, bleu2))
Box(225, 120, 10, -CPU, RGB ( rouge3, vert3, bleu3))
Locate (200, 10)
DrawingFont(LoadFont(1, police$, 7))
DrawText("Ram")
Locate (215, 120)
DrawText("CPU")
Locate (4, 135)
DrawingFont(LoadFont(1, police$, 10))
DrawText (saint$)
StopDrawing()