Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thermometer and refreshing
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00527684
Message ID:
00528025
Views:
15
Cathi,

>... My problem is that after the first label update my thermometer label and progress bar are not being refreshed after I modify them.

I assume that Your application is under heavy duty during the thermometer shows the progress. that is the reason why the labels are not being updated properly. Normally labels do not get updated at all and so I assume VFP gives them a minor priority. So You have do do some tricks in order to tell the fox that You really want to show the user that it's been 30% by now.

There are several methods but all of them have the goal to let VFP "breathe" for a moment so that the label can be updated (that's why it works when the debugger is open)

- Either use the draw() as You already found out by now, or
- use a wait window "" time 0.2 or
- doEvents() - however this gives all windows apps the possibility to
perform their tasks and this may be some seconds
- You can use a textbox instead (readOnly and nor borders, margins, tabstops
look like a label) that gets updated much better than the label
- use an ActivX-Meter (I use ctMeter from DBI) that is much smother than
using a shape (which I had to do in my former Fox2X-days)

...

Regards from Berlin

Frank
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Reply
Map
View

Click here to load this message in the networking platform