Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting code into method at runtime
Message
From
10/12/2008 12:41:29
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01366206
Message ID:
01366482
Views:
14
>>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform