Code : Tout sélectionner
#include <GUIConstantsEx.au3>
Global $noir=0x000000
Global $vert=0x006400
Global $bleu=0x0000FF
$gui3 = GUICreate("Statistiques", 600, 600)
$graph = GUICtrlCreateGraphic(30, 30, 500, 200) ;création d'un camembert pour les statistiques
$xformat = 100 ; position x du camembert
GUICtrlSetGraphic($graph, $GUI_GR_COLOR, $noir, $bleu) ; couleurs extérieur et intérieur du camembert
GUICtrlSetGraphic($graph, $GUI_GR_PIE, $xformat, 100, 100, 0, 344.52) ; création de la première part du camembert
GUICtrlSetGraphic($graph, $GUI_GR_COLOR, $noir, $vert)
GUICtrlSetGraphic($graph, $GUI_GR_PIE, $xformat, 100, 100, 344.52, 15.48);création de la deuxième part du camembert
GUISetState(@SW_SHOW, $gui3) ; afficher la gui
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
EndSelect
WEnd