Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Page in a Page Frame
Message
From
26/03/1998 10:13:50
 
 
To
25/03/1998 21:00:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00086869
Message ID:
00087280
Views:
46
>>I have no problem in shifting to another page. My problem is I cannot access the property of the active page. Actually, navigating to each other page, you only need one code, which is
>>
>>WITH thisform.pageframe
>>.activepage=IIF(.activepage=.pagecount, 1, .activepage+1)
>>ENDWITH
>>
>>However, you control is still not on the active page since I have these code on the KeyPress event of a form.
>
>Are you putting the control inside Tab?!
>In Code window, Right Click and select 'Object list' to check!!
>
>>
>>BTW, I am from Hong Kong, too. How's Hong Kong?
>>
>>Chu
>
>Hong Kong... Become poor place now... ~'.'~
>hope not worse la....
>
>Coming year Fresh Grad. will not easy to find job!! >_<"

My objective of putting that code in the KeyPress Event of the form is to allow user to browse around the pages no matter where the active control is. For example, if the user is editing the information on the form and wants to look at the corresponding information on page 3, he/she can simply press a key on the keyboard, say F12, without using a mouse. Therefore, the active control is still the form/object on the form, instead of the page. Anyway, I solved that problem by adding code on the ACTIVATE event on each page. It is not pretty but it works.

BTW, are you one of those coming year Fresh Grad? If yes, good luck to your job searching.


Chu
Previous
Reply
Map
View

Click here to load this message in the networking platform