Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two clicks to move from page to page
Message
From
20/08/2007 13:24:04
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249018
Message ID:
01249162
Views:
27
>>>Hi
>>>I have a pageframe--page--3 textboxes
>>>A user fills the textboxes and after the last textbox is filled the cursor goes to the first textbox and a recktangle appears around the page caption. Now to move to the next page the user has to click on the next tab twice. First click - the cursor disappears from the first textbox while the rectangle remains. Second click - the next page is actually activated. The pageframe is almost stripbare of code, there is a little innocent piece of code in the activate of each page.
>>>What would you suggest to save a user a click?
>>>Thank you.
>>
>>I can't reproduce the behavior.
>>
>>And this is odd: "the cursor goes to the first textbox and a recktangle appears around the page caption"
>>
>>It's looks like 2 objects have focus at the same time. Which makes me suspect some form of program induced pause is involved.
>>
>>I would make a copy of the form and keep removing method code until the problem disappears.
>
>Thank you.
>The thing was that i thought that page.activate only fires when the page just opens or it recieves focus from another form. After examination it looks like it fires every time the page caption recieves the focus no matter from where. So "a little innocent piece of code" in the activate event ran when i didn't need it.
>All the best.
>Kamil

You're Welcome, glad you found it.
Previous
Reply
Map
View

Click here to load this message in the networking platform