Board index » cppbuilder » How to write running Letters on the screen

How to write running Letters on the screen


2003-07-10 05:51:16 AM
cppbuilder23
Hi,
I like to know how I can write a continues a running letter on the dialog.
It will be like letters display one by one and go back to beginning.
Thanks in advance.
C
 
 

Re:How to write running Letters on the screen

Thanks for the response.
I am using C++Builder 5.0 (I just realized that I may be in wrong group). I
would say it is GUI application with a single running letter on the top line
and left edge. Then there will be a couple of buttons on the bottom.
Connie
"Wayne A. King" < XXXX@XXXXX.COM >wrote in message
Quote
On Wed, 9 Jul 2003 16:51:16 -0500, "Connie" < XXXX@XXXXX.COM >wrote:

>I like to know how I can write a continues a running letter on the
dialog.
>It will be like letters display one by one and go back to beginning.

You need to be more specific. Do you mean a single letter?
Or do you mean a phrase or sentence? Like a marquis or banner?
Can you give an example?

Also, what kind of program is this? DOS? Win16? EasyWin?
Win32? Console? GUI? Which compiler & version?

When you say "on the dialog", what specifically are you referring to?

A simple DOS example may be something like this:

#include <stdio.h>
#include <string.h>
#include <dos.h>

int main()
{
char temp, banner[] = ".........Hello, World!........";
int i;
printf("\n");
for(i=0; i<60; ++i)
{
printf("%s\r", banner);
delay(250);
temp = banner[0];
memmove(banner, banner+1, sizeof banner - 2);
banner[strlen(banner)-1] = temp;
}
return 0;
}

--
Wayne A. King
( XXXX@XXXXX.COM , XXXX@XXXXX.COM ,
XXXX@XXXXX.COM , XXXX@XXXXX.COM )