Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double Click Event wont work on grid
Message
 
 
À
23/05/2001 13:18:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00510474
Message ID:
00510479
Vues:
14
>I have a grid based object and when adding the object to a form based
>class and double clicking on individuals cells the code for that text box
>will not activate. I want to load a another form based on the information in that entry in the grid. Originally I just placed a grid on the form and
>it would work fine but now when using addobject() it wont work. I can just
>put a messageobox() to test and it is as if the textbox in that column
>is no longer getting the focus or something.
>
>??
>
>Ronnie

The CurrentControl for this column should be set to be this new class.

Example:
if this.lIncremental and lcFieldType='C' && We would use this feature only for char fields
               if lower(loColumn.currentcontrol)='text1' && standard text1 control
                    loColumn.removeobject('text1')
                    loColumn.newobject('text1','ingrid','wgcontrols.vcx') && Incremental search textbox
                    loColumn.text1.visible=.t.
                    *loColumn.ReadOnly=.t. && this is necessary condition     
                    loColumn.text1.cLocateExpression='upper('+lcFieldName+')'
               endif
          endif
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform