Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid double click event
Message
De
12/05/2000 14:32:30
 
 
À
12/05/2000 13:59:52
Brent Croft
Revenue Technology Services
Irving, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00369160
Message ID:
00369182
Vues:
17
I have found that the only way to get the grid doubleclick to fire instead of the individual textbox doubleclick, is to doubleclick on a row/column that is outside the range of the records in the grid. If you want to fire the same event no matter which textbox they doubleclick in, then you can put the code in all of the textboxes. Or, create a class of textbox that will be used in all columns.

DEFINE CLASS yourtextbox AS TEXTBOX
PROCEDURE doubleclick
*!* Put your code here

ENDDEFINE

Then in the setup of the grid properties put
thisform.grid1.RECORDSOURCE = 'your_table'
thisform.grid1.COLUMNCOUNT = nn
thisform.grid1.SETALL("SPARSE", .F., "COLUMN")
thisform.grid1.column1.CONTROLSOURCE = 'tbl.fld1'
thisform.grid1.column1.header1.CAPTION = "header"
thisform.grid1.column1.WIDTH = 75
*!* Here is where that class of textbox is put into the columns.
thisform.grid1.column1.ADDOBJECT( "TEXT1", "yourtextbox")
thisform.grid1.column1.CURRENTCONTROL = "TEXT1"

I hope I understood your problem correctly
Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform