Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting code into method at runtime
Message
De
10/12/2008 12:41:29
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01366206
Message ID:
01366482
Vues:
13
>>>>I'm trying to get the code I will have in my custom class to be in the grid at runtime. Is this the right way to do it?
>>>>
>>>>BINDEVENT(THIS.PARENT.&lcGridName,"MouseEnter",THIS,"MouseEnter")
>>>>
>>>
>>>Looks about right. You can use AEVENTS() to get reference to the grid in your custom class code.
>>
>>For some reason this does not work for me. I don't get errors, but during runtime when the MyGrid.MouseEnter is executed, it does not reference any of the code in my Custom class (THIS). I've tried it flipped around, as seen below, but the code does not run.
>>
>>BINDEVENT(THIS.PARENT.MyGrid,"MouseEnter",THIS,"MouseEnter")
>>BINDEVENT(THIS,"MouseEnter",THIS.PARENT.MyGrid,"MouseEnter")
>>
>>Any ideas?
>
>For the grid the MouseEnter of textboxes in the Column is executed, not the MouseEnter of the grid unless AllowCellSelection property is .F. for the grid.

I have verified that the MyGrid.MouseEnter is executing by putting a STEP into the method.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform