Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying Conditional Container
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00532576
Message ID:
00533856
Views:
19
Stephen,

I didn't notice any delay with my approach. However, the form loading time is decreased, that's important. Besides, there are lots of situations, when user would never go to second and other pages at all. Why we still need to load their objects, if they would not be visible anyway? And I believe I picked this idea from UT some time ago (from Brett Hobbs, if I remember correctly).

>>>>If the user would not go to the second and other pages, we save time of form loading...
>
>thats your advantage to doing it on the fly? I would re-think it
>
>cause if anybody goes to the pageframe then it would take longer (going by your description)
>
>I know on my system it looks like once a form is loaded with the pageframe then every page is loaded, cause I have no stall between pages loading, now I know a class loads faster then a form so only a fool would dispute that point
>
>Yea but we all ready determined that he only needed this form in his program once and he seemed pretty satisfied that I hooked him up
>
>
>
>
>
>
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform