Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed refresh
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01014583
Message ID:
01014592
Views:
17
Hi Don,

Just a crazy thought here...

but could you take the controls from the pageframe, place them in a container, and then instantiate the container behind the scenes at some (earlier) point in time, WITHOUT the container being visible?

The basic idea is, when your user selects page 3, you would position the container on the page and make it visible -- but the textboxes have already "done their thing" (or some part of it) and the page *appears* to display faster. Also, since the control isn't visible, there's no *visual* redraw of the control happening, so it should be a bit faster than your current approach.

Like I said -- just a crazy thought --

>I have a form that contains a pageframe with a large number of controls on each page. Page 3 of the pageframe contains 96 textboxes which are subclassed to present computed data. The refresh method of the custom textbox contains the following code:
>
>
>
>var1 = "day1." + alltrim(this.Name)
>var2 = "day2." + alltrim(this.name)
>v3 = val(strtran(this.Name,"P",space(1)))+100
>var3 = "day1.P" + alltrim(str(v3))
>var4 = "day2.P" + alltrim(str(v3))
>this.Value = int((evaluate(var1)+evaluate(var2)+evaluate(var3)+evaluate(var4))/2)
>
>
>Everything works fine except that the first time the user selects this page (page 3) it takes a long time for the page to refresh and come up. After the first calculation the page works reasonable fast as we skip through the records. I have played with lockscreen but have not been able to find a way to speed up the initial refresh. The page has
>
>
>this.refresh
>
>
>in the activate event.
>
>Does anyone know of a way to speedup the initial calculation?
>
>Thanks in advance.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Reply
Map
View

Click here to load this message in the networking platform