Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forceing screen to update
Message
De
14/08/1998 03:53:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/08/1998 16:45:26
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00126578
Message ID:
00126813
Vues:
24
Snip..
>I implemented your suggestion as follows:
>
>
ThisForm.AddObject("TextBox1","TextBox")
>WITH ThisForm.TextBox1
> .top=48
> .left=10
> .height=80
> .width=635
> .FontSize=11
> .visible=.T.
> .enabled=.F.
>ENDWITH
>
>ThisForm.Lockscreen=.F.
>ThisForm.TextBox1.value='lengthy process .. please wait'
>ThisForm.TextBox1.Refresh()
>
>
>I had to add the Refresh() at the end before the screen would update on queue, has this been your experience also ?

To my experience this doesn't need refresh. So we are back to where we started. There is something else preventing normal behaviour for both label and textbox.
Craig and Jeff's wait window suggestion works all the time. But I still wonder what caused it. Other things I use for this purpose :
1) Set message to && Use FP statbar
2) Add an OLEStatbar with panels and something like :
this.oleStatBar.panels(1).text = "Loading data in treeview..."
* Start data process
* Done part so far && Funny also a progbar works at the same time in Panels(2)
this.oleStatBar.panels(3).text = str(recno(),4)+"/"+ltrim(str(reccount()))

* Of course I don't call this part with every pass but per 10,100 etc
* If I use it ie: for populating a treeview, the total time with those showup only differ 1 or 2 secs than w/o it at all (ActiveX always seem slow to me).

And final, if there is hope your data crunching part could be made faster, concentrate on it and simply use "wait window" way.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform