Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe: AutoTab To Pages
Message
 
To
26/02/1997 18:58:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00022151
Message ID:
00022167
Views:
47
>VFP50
>NT Workstation 4.0
>
>I have created a pageframe.
>On one of the pages I created a button.
>In the 's click() event I wrote:
>
>NODEFAULT
>name_of_next_page.ObjectName.Setfocus()
>thisform.refresh
>thisform.name_of_next_page.refresh()
>
>It doesn't jumb to the next page when I hit the button.

Setting focus to the control on another page does not automatically activate that page. You have to write in Click() somethig like

this.parent.parent.ActivePage=myNextPageNumber
this.parent.parent.MyNextPage.MyObject.SetFocus()

Are you using PageFrame with no tabs?
What is the reason to do it with Button?
You can also set focus to ObjectINeed in Page Activate()

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform