Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get back to a page from it's deactivate?
Message
 
À
29/10/1996 10:12:36
Paul Wei
Fib, State of Michigan
Lansing, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00011046
Message ID:
00011085
Vues:
43
>>>I have tried to place the current page's page number in the pageframe's >"ACTIVEPAGE" property
>>Try NODEFAULT in your DEACTIVATE(). It works, but gives visual side effects on pageframe's tabs, but ACTIVEPAGE still remains the same.
>
>I see what you mean about the pageframe's tabs. NODEFAULT works fine on a pageframe with two pages, but screws up on the tabs when there are more than 2 pages.
>
>On a more complicated pageframe, suppose I was at page 1 and clicked on page 3. And suppose I have a NODEFAULT in the DEACTIVATE method of page 1, I stay at page 1 OK but the page 2 tab would be highlighted. If I click on page 4, then the NODEFAULT would cause the page 3 tab to be highlighted, etc. etc.
>
>Know how to get around this problem as well?
>
>Thanks.
>
>Paul
why not put the following code in the deactivate method if an error has occurred

say on page 3's deactivate method


if error (etc)
thisform.pageframe1.activepage=3
endif

this should force the focus back to the page
Todd Burstain, MD
infinitydoc@delphi.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform