Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindevent of a when of textboxes in a grid
Message
 
To
27/04/2004 20:45:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00898775
Message ID:
00898781
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hi Dragan,

This is documented behavior. The help for BINDEVENT specifically says, "Certain events such as When and Valid require code in the event for it to occur." I'm not sure of the reason for that, but at least it's documented.


>I'm binding three events for each colum: header.click, text1.rightclick and text1.when.
>
>The first two fire OK, the when doesn't. I tried in the debugger, while I had a reference to one of the textboxes, to see what does its when() return, and sure it runs the delegate code. But once the grid comes up, the event isn't firing at all.
>
>But then, if there is some code in the control's when(), then it fires. Which sort of defeats the purpose of bindevent() - which in this case is to have all the controls when() event fire the same code.
>
>Did I hit another bug?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform