Graph.h - Position Souris
Résolu/Fermé
Blennoragie
Blennoragie
- Messages postés
- 34
- Date d'inscription
- samedi 15 mars 2008
- Statut
- Membre
- Dernière intervention
- 30 octobre 2012
Blennoragie
- Messages postés
- 34
- Date d'inscription
- samedi 15 mars 2008
- Statut
- Membre
- Dernière intervention
- 30 octobre 2012
A voir également:
- Graph.h - Position Souris
- Graph.h - Position Souris ✓ - Forum - Programmation
- Carte graph HS MSI notebook ✓ - Forum - Carte-mère / RAM
- PC qui se coupe sous jeux: carte graph HS? ✓ - Forum - Matériel informatique
- Carte graph AV32S hs ✓ - Forum - Matériel informatique
- [ecran, carte graph] couleur et definition HS ✓ - Forum - Matériel informatique
1 réponse
Blennoragie
21 déc. 2009 à 16:58
- Messages postés
- 34
- Date d'inscription
- samedi 15 mars 2008
- Statut
- Membre
- Dernière intervention
- 30 octobre 2012
21 déc. 2009 à 16:58
Finalement, j'ai réussi, comme cela :
Par contre, s'il y a mieux, je ne suis pas contre ^^
#include <stdio.h> #include <stdlib.h> #include <graph.h> int main(void) { int x,y; InitialiserGraphique(); CreerFenetre((Maxx()-800)/2,(Maxy()-600)/2,800,600); couleur noir=CouleurParNom("black"); DessinerRectangleC(300,145,170,100,noir); EcrireTexte(350,200,"AAAAA",2); while(!SourisCliquee()); { x=_X; y=_Y; if(_X>300&&_X<470&&_Y>145&&_Y<245) { EcrireTexte(350,400,"BBBBB",1); } } Touche(); FermerGraphique(); }
Par contre, s'il y a mieux, je ne suis pas contre ^^