Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set DoubleClick event for Text Boxes in Grids
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00398429
Message ID:
00399112
Vues:
23
Barbara,

Is there not a way to programmatically set the dblclick() event for each of those text boxes in my grid? Jess had said something about making my own text box class to place in the grid. That would be really handy. I know how to make the textbox class, and drag it on the each of the columns in the grid. But how do I remove the native "textbox" that is based on the VFP class that is put in the grid when I create it?

For that matter, how do I remove an entire column from a grid I created by dragging a view onto a form without having to change the view then "re-drag" it onto the form (or pageframe in my case).

>Elgin,
>Jess is correct about having to change the code for each textbox/grid involved. However, you can simplify it somewhat by using the same code for each textbox:
>
>this.parent.parent.dblclick()
>
>This will call the GRID's dblclick(). Since it seems to me (if I haven't missed something) that you want a double click ANYWHERE on the grid to expand that record, then in the GRID's dblclick() code you put the grid-specific directions.
>
>HTH
>Barbara
>
>>I have a pageframe with several pages each containing a grid. All those grids are based on the same grid class. I'm trying to enter code into the Init event of my grid class to make the "DblClick" event of each textbox of each column of each grid run another form. I've tried using the Controls and ControlCount commands. I get "CONTROLS" cannot be enumerated."
>>
>>Basically, I'm trying to make the grids run another form that "zooms in" on the record the user double clicks in the grid.
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform