Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column member class
Message
De
30/03/2004 10:49:32
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
30/03/2004 10:18:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00890548
Message ID:
00890815
Vues:
21
OK. Now I understand your point. When I originally read your first reply, I was wondering how BINDEVENTS was related to the process of actually adding the textbox class to the column member class.

Thanks for the help.

Mike

>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
Répondre
Fil
Voir

Click here to load this message in the networking platform