Is there anyway I can make my static text appear with a delay? For example:

Hello
(Wait 1/5 of a second)
How are you?
etc...

Any help would be greatly appreciated.

And I forgot to mention, I am doing all of this in a dialog.

Yes, use call Sleep() to make the program pause for the desired about of time then rewrite the text.

#include <iostream>
#include <windows.h>

int main()
{
   cout << "Hello ...";
   Sleep(2000); // wait for 2 seconds
   cout << "How are you?\n";

}

It's something similar with Windows Forms or MFC dialog boxes except instead of using cout to write the text you have to change the text in a static text control -- just give the text control property a name and you can easily change the text just as you might in an edit control.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.