Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop Pageframes from clickable page changes?
Message
 
To
11/06/2001 12:51:32
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00517885
Message ID:
00517927
Views:
17
>I am using a pageframe with 5 "steps" that a user completes. I want to control proceeding to the next
>step ONLY when needed info or proceedures are completed. I added a controllable CONTINUE button
>on each page of the pageframe. I will control the DISABLE option of the CONTINUE button to prevent
>use but I need to stop the user from clicking on the "tab" of a subsequent page. How can I disable
>the pageframe "page" selection?
>
>Thanks

I create a form property: ThisForm.currentPage

I set it in the page Activate of each page:
ThisForm.currentpage = what_ever_the_actual_page_number_is
I follow that with code which evalutes the users right to access the selected tab:
IF ThisForm.exemptemp
	ThisForm.currentpage = 5
	ThisForm.LockScreen = .T.
	...any desired code here
	ThisForm.LockScreen = .F.
ELSE
        * user denied access... return them to page they were on
	This.Parent.activepage = ThisForm.currentPage
        * the tab merely appears to be inactive.  You can flash a msg or ...
ENDIF
HTH,
JLK
Nebraska Dept of Revenue
Previous
Reply
Map
View

Click here to load this message in the networking platform