U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Slider&ProgressIndicator » ProcessMessages question
ProcessMessages question [message #3821] Wed, 28 June 2006 14:33 Go to previous message
brianE is currently offline  brianE
Messages: 13
Registered: June 2006
Promising Member
I hope this is the right corner to be in...

Two related questions:
If ProgInd needs value and maxval to indicate progress then can I assume that there is a ProcessMessages or similar at work when inside a long loop? ie

for (int j=0;j<5000;j++)
{
// do something
ProgInd.Set(j,5000);
}

If I have a 'while' loop I cannot play that game (I don't know maxval) but I can show progress by writing to an EditInt:

int j = 0;
while (j<someval)
{
// do something
EdInt <<= j++;
}

But it never shows until the end! I need a ProcessMessages don't I? How do I accomplish this? Of course, I could be wrong and I hope you will set me on the right path.

BrianE
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Slider verticality bug or underdevelopment? [ADDED]
Next Topic: Use slider from layout designer?
Goto Forum:
  


Current Time: Tue Apr 28 15:20:18 GMT+2 2026

Total time taken to generate the page: 0.01651 seconds