Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing for header click in a grid
Message
 
 
À
29/07/2003 09:39:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00814471
Message ID:
00814528
Vues:
12
Put this in the GRID INIT:
LOCAL loColumn, loControl
FOR EACH loColumn IN THIS.Columns
   FOR EACH loControl IN loColumn.Controls
      IF UPPER(loControl.BaseClass) = [HEADER]
         BINDEVENT(loControl, 'Click', THIS, 'OnHeaderClick')
      ENDIF
   ENDFOR
ENDFOR
Now just add a OnHeaderClick method to your grid class.

The point here is bind the click event of the header to some method in your grid or form, then put your code in that grid or form method.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform