Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP6 Page Frames

Status
Not open for further replies.

webmonger

Programmer
Mar 13, 2004
66
0
0
AU
Is it possible to disable the 'click on tab' action at the top of each page as I have navigation buttons with special 'jump pages' etc?

Thanks
 
Hi

In the PageN.ActivateEvent if you put the code
NODEFAULT
then users cannot activate that page.

However, how do you activate the page?.

1. I would suggest that, you create a form property, let us say..
lPageActivate
and set its inital value to .f. or .t. as you may decide.

Then whenever your pageactivate button is clicked.. make the first line of code
ThisForm.lPageActivate = .t.

2. In the ActivateEvent of each page.. put the code..

IF ThisForm.lPageActivate = .f.
NODEFAULT
ELSE
DODEFAULT()
ThisForm.lPageActivate = .f.
ENDIF

Hope this idea helps you out :)



____________________________________________
ramani - (Subramanian.G) :)
 
Mike said
Rather than disabling the tabs, it would be better to make them invisible. To do so, set the pageframe's Tabs property to .F.


This has the visual appearance I like but my [Next] button with code like

thisform.con1.Page2.setfocus


no longer works...

Bryan
 
I now have the solution to set the Activepage property on my Next buttons

Thankyou
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top