Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating Form class in INIT of another form
Message
 
 
To
11/07/2018 02:18:48
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01661090
Message ID:
01661106
Views:
45
>The pressing problem is already solved.
>The approach of keeping helper forms set to invisible around is often more beneficial than creating and destoying helper forms on each access.
>BUT:
>As time to interactive is one of the most sought-after targets in mobile, doing such housekeeping in init() IMO is not best.
>
>Better:
>enhance calling methods to check and if not created create form in question, put it into property and keep it.
>If you have 10 such helper forms, main form will be accessible on start much sooner, on first call of each helper form there is a minute lag never experienced again as form is kept in memory. If client loves big words, tell him that the app caches resources as demanded by user and liken that to Java hotspotting some methods during runtime ;-))
>
>Even better:
>create those helper forms via timer if user is inactive for a while. Fast main form start and first lag of helper screen often hidden.
>
>Cherry on top:
>make the order of the helper forms data-driven by the usage of each user, so that the blonde from car insurance gets all car helper screens cached first while the brunette from home insurance has other helper screens up earlier.
>
>

Thank you for your suggestions.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform