FORUM DE DISCUSSION SUR LE LANGAGE PANORAMIC
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
FORUM DE DISCUSSION SUR LE LANGAGE PANORAMIC

Développement d'applications avec le langage Panoramic
 
AccueilAccueil  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  MembresMembres  Connexion  
Derniers sujets
» Gestion d'un système client-serveur.
Comme un timer. Mais un chronomètre Emptypar Klaus Ven 17 Mai 2024 - 14:02

» item_index(résolu)
Comme un timer. Mais un chronomètre Emptypar jjn4 Mar 14 Mai 2024 - 19:38

» Bataille terrestre
Comme un timer. Mais un chronomètre Emptypar jjn4 Lun 13 Mai 2024 - 15:01

» SineCube
Comme un timer. Mais un chronomètre Emptypar Marc Sam 11 Mai 2024 - 12:38

» Editeur EliP 6 : Le Tiny éditeur avec 25 onglets de travail
Comme un timer. Mais un chronomètre Emptypar Marc Sam 11 Mai 2024 - 12:22

» Philharmusique
Comme un timer. Mais un chronomètre Emptypar jjn4 Ven 10 Mai 2024 - 13:58

» PANORAMIC V 1
Comme un timer. Mais un chronomètre Emptypar papydall Jeu 9 Mai 2024 - 3:22

» select intégrés [résolu]
Comme un timer. Mais un chronomètre Emptypar jjn4 Mer 8 Mai 2024 - 17:00

» number_mouse_up
Comme un timer. Mais un chronomètre Emptypar jjn4 Mer 8 Mai 2024 - 11:59

» Aide de PANORAMIC
Comme un timer. Mais un chronomètre Emptypar jjn4 Mer 8 Mai 2024 - 11:16

» trop de fichiers en cours
Comme un timer. Mais un chronomètre Emptypar lepetitmarocain Mer 8 Mai 2024 - 10:43

» Je teste PANORAMIC V 1 beta 1
Comme un timer. Mais un chronomètre Emptypar papydall Mer 8 Mai 2024 - 4:17

» bouton dans autre form que 0(résolu)
Comme un timer. Mais un chronomètre Emptypar leclode Lun 6 Mai 2024 - 13:59

» KGF_dll - nouvelles versions
Comme un timer. Mais un chronomètre Emptypar Klaus Lun 6 Mai 2024 - 11:41

» @Jack
Comme un timer. Mais un chronomètre Emptypar Jack Mar 30 Avr 2024 - 20:40

Navigation
 Portail
 Index
 Membres
 Profil
 FAQ
 Rechercher
Rechercher
 
 

Résultats par :
 
Rechercher Recherche avancée
Mai 2024
LunMarMerJeuVenSamDim
  12345
6789101112
13141516171819
20212223242526
2728293031  
CalendrierCalendrier
Le deal à ne pas rater :
Cartes Pokémon EV6.5 : où trouver le Bundle Lot 6 Boosters Fable ...
Voir le deal

 

 Comme un timer. Mais un chronomètre

Aller en bas 
2 participants
AuteurMessage
Invité
Invité




Comme un timer. Mais un chronomètre Empty
MessageSujet: Comme un timer. Mais un chronomètre   Comme un timer. Mais un chronomètre EmptyMar 10 Nov 2009 - 23:08

Salut à tous !

Il n'y a pas longtemps j'avais écraser un fichier .bas . Mais j'ai recommencer le programme et il est plus court. Ce programme est un chronomètre à rebours qui calcule en seconde. On peut l'ajuster avec les bouton "+" et "-" ou encore on peut l'ajuster en écrivant le nombre de seconde. J'aurais bien aimer au lieu de l'edit un spin mais la commande text N,T pour un spin ne marche pas.

Voici mon code :

Code:

label restart,start,quitter
label plus,moins
dim a
a=10

sound 6
file_load 6,"C:\WINDOWS\Media\ringin.wav"

width 0,210
height 0,171
caption 0,"Chronomètre"

edit 1
left 1,5
top 1,5
width 1,192
text 1,""+str$(a)

button 2
left 2,11
top 2,31
width 2,88
caption 2,"+"
font_bold 2
font_size 2,15
height 2,21
on_click 2,plus

button 3
left 3,104
top 3,31
width 3,88
caption 3,"-"
font_bold 3
font_size 3,17
height 3,21
on_click 3,moins

button 4
left 4,15
top 4,83
width 4,173
caption 4,"Restart"
height 4,21
font_bold 4
on_click 4,restart

button 5
left 5,15
top 5,57
width 5,173
caption 5,"Start"
height 5,21
font_bold 5
on_click 5,start

button 7
left 7,15
top 7,109
width 7,173
caption 7,"&Quitter"
on_click 7,quitter

end

restart:
text 1,"10"
return

start:
a=text$(1)
while a>0
text 1,""+str$(a)
wait 1000
a=a-1
end_while
text 1,"0"
play 6
wait 2000
play 6
return

plus:
a=a+1
text 1,""+str$(a)
return

moins:
a=a-1
text 1,""+str$(a)
return

quitter:
terminate
Revenir en haut Aller en bas
JL35




Nombre de messages : 7095
Localisation : 77
Date d'inscription : 29/11/2007

Comme un timer. Mais un chronomètre Empty
MessageSujet: Re: Comme un timer. Mais un chronomètre   Comme un timer. Mais un chronomètre EmptyMar 10 Nov 2009 - 23:46

Oui, pas mal.
Mais il faut supprimer la ligne 8: le fichier ringin.wav n'existe pas (chez moi du moins)
Revenir en haut Aller en bas
Jean Claude

Jean Claude


Nombre de messages : 5950
Age : 69
Localisation : 83 Var
Date d'inscription : 07/05/2009

Comme un timer. Mais un chronomètre Empty
MessageSujet: Re: Comme un timer. Mais un chronomètre   Comme un timer. Mais un chronomètre EmptyMer 11 Nov 2009 - 9:52

Sous XP, çà marche
Bravo à Nicolas
Revenir en haut Aller en bas
Contenu sponsorisé





Comme un timer. Mais un chronomètre Empty
MessageSujet: Re: Comme un timer. Mais un chronomètre   Comme un timer. Mais un chronomètre Empty

Revenir en haut Aller en bas
 
Comme un timer. Mais un chronomètre
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» Je donne mon code comme promis mais ...
» Une commande petite comme ça, efficace comme ça!
» Chronomètre
» Chronomètre utilisant la variable NUMBER_TICK
» Timer ?

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
FORUM DE DISCUSSION SUR LE LANGAGE PANORAMIC :: PANORAMIC :: Vos sources, vos utilitaires à partager-
Sauter vers: