Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form is not active on the second call
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249847
Message ID:
01249948
Views:
18
>Hi Naomi,
>
>>I'm not sure what's causing this strange problem and how to remedy it.
>
>have you verified that the Show method is indeed being called the second time?

Christof,

I called the form 5 times from the menu. Just opened the form and closed it. The 5th time it came without a focus :(

I tested some other forms in this application and I can not reproduce the problem. Other forms don't have a pageframe on them.

This form has a pageframe and the following code in form's Activate method:

DODEFAULT()
IF thisform.pgfProblemsResolutions.Activepage = 0 && First time
thisform.pgfProblemsResolutions.ActivePage = 1
endif

There is also code in the Activate method of the page. The form appears with a focus on the grid.

One more bit of information related to the form - it has a timer used in order to create tooltips for the grid. Could it be that this class cause the unwanted behavior?

Thanks a lot again.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform