Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying Conditional Container
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00532576
Message ID:
00533218
Vues:
16
>No ahead of time I determine all needs and create a pageframe with a page for each possible condition, if I would do it on the fly the app size would be smaller but then it would take longer to load the pageframe
>
>Where you gathered that I do it on the fly is beyond me
>
>and whats your advantage to doing it on the fly?????

If the user would not go to the second and other pages, we save time of form loading...

I also have situations, where the same form used for different tables (and therefore table structure). In this case I have two different grids, which I instantiate on the fly depending on condition. This works just fine.
>
>
>>Stephen,
>>
>>I'm not 100% sure, I understood. You create a page object on the fly, right?
>>
>>For instance, I have a form with two pages. I put nothing on the second page. In page Activate I have:
>>
>>********************************************************************
>>*  Description.......: Page2.Activate
>>*  Calling Samples...: 
>>*  Parameter List....: 
>>*  Created by........:  
>>*  Modified by.......: Nadya Nosonovsky 07/19/2001 01:30:38 PM
>>********************************************************************
>>with this
>>     if type("this.ContPageBrowse")"O"
>>          .newobject("ContPageBrowse","PageBrowse","phones.vcx")
>>          .ContPageBrowse.top=1
>>          .ContPageBrowse.left=1
>>          .ContPageBrowse.height=.parent.height-25
>>          .ContPageBrowse.width=.parent.width-3
>>          .ContPageBrowse.visible=.t.
>>     endif
>>     .refresh()
>>     .ContPageBrowse.grdBldMstr.setfocus()
>>endwith
>>
>>Is it essentially your suggestion or I misunderstood?
>>
>>
>>
>>>No prob
>>>
>>>I have a like issue on a form and I used a pageframe without tabs and it works very speedy and cleanly
>>>
>>>>Ok! I wasn't aware that you could have a pageframe without tabs. This will do exactly what I want as I originally had it on a pageframe, but the tabs weren't relevant, disabled or not, under certain conditions. Thanks!
>>>>
>>>>>add a pageframe to the form, set "tabs" property to .F., and in the refresh of the form evaluate the condition and show the desired page thisform.pageframe.activepage = nPageNumber
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