programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Callback Behavior

From: Schmitt Louis Jean-Pierre <louis.schmitt_at_eif.ch>
Date: Thu, 17 Jan 2002 14:38:00 +0100

Hello all

I do not know if I understood the operation of the callbacks well

Here what I believed to understand: =20

A callback behaves like an interruption, summons it of it is the same idea
as that of the interruptions on a processor. Thus in light if I acted on
the keyboard or mouse WINDOW detects this, an interruption of name causes
programs and comes to carry out the callback which is in my window
activates at this time. Once the callback carried out, WINDOW relinquishes
control in my program to me. The question that I installation is to know
if this also functions if in my program I am in a loop, c.a.d the loop is
stopped, the callback carried out then return in my loop Or in my loop do
I have to go to read the messages of WINDOW =20

All my thanks by advance for the answers. =20

Louis Jean-Pierre

Original text in french

Hello all

Je ne sais pas si j'ai bien compris le fonctionnement des callbacks

Voici ce que j'ai cru comprendre:

Un callback se comporte comme une interruption, en somme c'est la meme idee
que celle des interruptions sur un processeur.
Donc en clair si j'agis sur le clavier ou le mouse WINDOW detecte ceci,=20
provoque un interruption de nom programme et vient ex=E9cuter le callback=
 qui
se trouve dans ma fenetre active =E0 ce moment.
Une fois le callback execute, WINDOW me rend la main dans mon programme.
La question que je me pose est de savoir si ceci fonctionne egalement si
dans mon programme je me trouve dans une boucle, c.a.d la boucle est-elle
interrompue, le callback execute puis retour dans ma boucle ???
Ou bien dans ma boucle dois-je aller lire les messages de WINDOW ???

Tous mes remerciements par avance pour les reponses.

Louis Jean-Pierre

=20

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Search the archives! Visit http://www.forth.com/search for details.
Received on Thu Jan 17 2002 - 05:41:11 PST

This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 03:04:21 PST