Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column member class
Message
De
30/03/2004 10:18:08
 
 
À
30/03/2004 09:15:42
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00890548
Message ID:
00890794
Vues:
19
Hi Mike.

BTW, can you explain how BINDEVENTS could potentially help here? My only use of BINDEVENTS thus far has been to resize objects in my form when the form resizes.

Sure. Here is some of the code in the SetGrid() method of my base grid class:
*!* now make sure that the dblclick method of all the contained text boxes
*!* delegate to the grid's dblclick()
FOR EACH loColumn IN This.Columns 
  FOR EACH loControl IN loColumn.Controls
    IF LOWER( loControl.BaseClass ) = 'textbox'
       BINDEVENT( loControl, 'dblClick', This, 'dblClick' )
    ELSE
      IF LOWER( loControl.BaseClass ) = 'header'
        BINDEVENT( loControl, 'Click', This, 'SortGrid' )
      ENDIF
    ENDIF
  ENDFOR
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform