Click to See Complete Forum and Search --> : Update Dialog


July 28th, 1999, 11:26 AM
I want to update my dialog every one second. What should I do to update the dialog?

I have two dialog name CDIAGNOSTIC and CPCBASE. In CDIAGNOSTIC, I has one button everytime I click on this button. It will display CPCBASE dialog, CPCBASE dialog have two label. I want to display label 1 from number 1 to 10 and label 2 from number 10 to 1. CPCBASE dialog only update label 1 and 2 every one second and display different number everytime it updates.

bimmer boy
July 28th, 1999, 01:04 PM
simple way: create a timer and have it decrement a counter then re apply the label to your dialog

the way i'd do it: create a worker thread that decrements the counter and re applys it to the dialog...this way will be more accurate...timers execute near the time you specify, but not exactly.

miked