Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe: AutoTab To Pages
Message
 
À
26/02/1997 18:58:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00022151
Message ID:
00022167
Vues:
43
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform