Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame.ActivePage doesn't display page.
Message
From
07/11/2003 21:00:21
 
 
To
06/11/2003 22:21:07
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00847480
Message ID:
00847880
Views:
24
Bill-

>I'm using VFP 7.0
>
>.....myPageFrame.Page2.Activate()
>  if SomeCondition
>    This.Parent.ActivePage = 1
>    NODEFAULT
>  endif
>
>If the user is on Page4 (or any other page) when they click on Page2, the Page1 tab gets the focus, but Page1 doesn't display, it stays on Page4.
>I have to click on Page4, before I can change to ANY other page.

I tried creating a simple example using VFP 7.0 SP 1 and couldn't duplicate the problem, so it may be a problem coming from elsewhere in the code.
SET SAFETY OFF
CLEAR
RELEASE ALL
CLEAR ALL
DELETE FILE ActivateEx.sc?
CREATE FORM ActivateEx NOWAIT
ASELOBJ(laObject,1)
loForm = laObject[1]
WITH loForm
  loForm.ADDOBJECT('PageFrame1','PageFrame')
  loForm.PageFrame1.PAGECOUNT=3
ENDWITH
loForm.PageFrame1.PAGES(3).WRITEMETHOD('Activate',;
  "this.parent.activepage=1"+CHR(13)+"NODEFAULT")
KEYBOARD '{CTRL-W}'
DOEVENTS FORCE
DO FORM ActivateEx
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform