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

I've just tried:
********************************************************************
*  Description.......: pageFrame1 Refresh
*  Calling Samples...: 
*  Parameter List....: 
*  Created by........:  Nadya Nosonovsky 01/13/2000 12:30:32 PM
*  Modified by.......: 
********************************************************************
local lPage
for each lPage in this.Pages
   if !thisform.btcDevMode 
     if !lPage.enabled && this page is disable
        This.RemoveObject(lPage.Name)
    endif
   endif
next    
It removes pages, but the problem is that I need information on the disabled pages! In my case I really want to just hide pages... I tried Mike's class for this, but now I have another problem - I have code in the page.Activate method and Page.RightClick method for all my pages, but if I use Mike's class, I can not keep these methods.

So, I assume, in my case I can't achive the desired result untill new version of VFP. Right?
>>Is it possible to hide just a page tab or two from a particular user or user group. Then, the application would only make it visible to a certain user group?
>>
>>If it's not, is there a work-around for this?
>>
>>Thanks for the assistance.
>
>
>You can't hide the page, but you can remove it. In the PageFrame.Init, you can:
>
>IF !AllowAccess("Page2")
> This.RemoveObject("Page2")
>ENDIF
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