Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding a particular page tab
Message
 
 
À
17/01/2000 20:18:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00317317
Message ID:
00319518
Vues:
12
Darwin,

> I've also tried the pageframe class. My problem is that I've got methods (like pageattrib, combocontrols, datacontrolsource) that loop through each pages and updates/refreshes each controls.

Do you mean you tried Mike's class? The problem with this class, I'm afraid, that we can not keep the methods, which we have for pages in a regular PageFrame. I haven't tried to delete my existing PageFrame, put Mike's and add necessary code again, but I assume, this should also don't work. What I did, I just used my existing PageFrame, came to SCX file directly and changed Class to mhTab and ClassLoc to mhTab.vcx. When I reopened my form, the PageFrame looks nice, but, unfortunately, it lost all code in its Pages.


> I'll have an 'Object not found' errmsg if I'll be issue a RemoveObject() method in INIT().

Try to put:

If thisform.Page2NotAllowed && Or whatever condition it should be
thisform.PageFrame1.RemoveObject('Page2')
endif

where PageFrame1 the name of your PageFrame (use your name instead),
Page2 - page to be removed (use your name instead)

Try this code in PageFrame.Init. If it wouldn't work, try in Form.Init. - there it definitely should work.


> The program determines which pages are displayed by what usergroup the user belongs.
>
> I have to settle for a Disabled page while waiting for VFP7.0 release.
>
> Thanks for all the assistance.

HTH
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform