Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double-Click grid does not work
Message
De
02/10/1998 16:44:34
 
 
À
02/10/1998 14:13:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00143380
Message ID:
00143455
Vues:
26
>I put some code in a grid.doubleclick() method, but the code is not executing when I double click a field in the grid.

The _control_ in the Column is taking the DoubleClick (Grid.Column1.TextBox1). There is no "Column class" you can modify to automatically propagate the grid. What I have done is create a method on the Grid level called RowDblClick(). I put my complex code in there and drop a simple (This.Parent.Parent.RowDblClick) into the DoubleClick of each TextBox.

Another way -- less desireable to some because it's not Visual -- is to add your columns on the fly. Pass an array containing column names, controlsource... and build the grid dynamically. If you want some examples we can do it offline. JimToler@TemperedSys.com

The same basic problem of "inheritance blindness" is true of CommandGroups and OptionGroups, also. Make really cool custom properties on your base CommandButton or OptionButton, and it's not used when you change the ControlCount of CommandGroups and OptionGroups. Bummer.


jt

"I have no respect for a man who can only spell a word one way." -- Mark Twain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform