Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe in a Pageframe. Help Please!!
Message
De
07/02/2008 07:24:50
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
07/02/2008 07:12:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01290327
Message ID:
01290329
Vues:
16
Matt,

have a look at the child pageframes UIEnable event instead of parents activate.

Agnes
>I have a parent Pageframe with 2 pages, and on page2 of that, I have another pageframe (call it the child pageframe) also with 2 pages.
>
>Based on what the user chooses on certain controls of Page1 of the parent pageframe, when they switch to page2 of the parent, I need to set the activepage of the child pageframe to its page1 or page2.
>
>The code to set the childpageframe.activepage property is called in the parentpageframe.page2.activate() event. So that is causing the activate() event of the target child page to fire (which it should), but also, because focus has passed from parent.page1 to parent.page2, that seems to be firing the activate event of the current child page AGAIN after my code has been run. So basically, the child pageframe.pagex.active() is firing twice, once by my custom code in parentpageframe.page2.activate(), and once because of the focus change to parentpageframe.page2.
>
>The real pproblem is that I need to know if the childpageframe.pagex.activate() event is firing because of the user switching between child pageframe pages, or becuase they have switched from parent page1 to parent page2.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform