Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get back to a page from it's deactivate?
Message
 
To
29/10/1996 10:12:36
Paul Wei
Fib, State of Michigan
Lansing, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00011046
Message ID:
00011085
Views:
36
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform