Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How column When() gets control in a Grid object
Message
From
15/05/2008 10:54:40
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01317146
Message ID:
01317305
Views:
8
>>I always though the When() will get control when you click on the object or object get control.
>>
>>Does the grid has a different behavior?
>>For example, the first time I click in a grid, let say column 3. the when() of column 2 get fired.
>>is that weird behavior? or it is by design? or it is me?
>
>The grid columns don't have WHEN() event. Can you clarify what the problem is?

Ooops, I meant an object in the column, say textbox.

to repeat the behavior I am talking about:

create a form
drop a textbox on the form (must be first to get focus or set the tabindex to be before the grid)
drop a grid on the form (such as dropping table on the form)
add a when() code in the first column's object (textbox,...) for example, wait window ""

run the form, the textbox will get focus
click in the grid, any column other than the first column, the one with the When() code and see if the when will fires. It will happens the first time only. Repeated click will not show this behavior.

Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform