×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Splash screen!!!!

Splash screen!!!!

Splash screen!!!!

(OP)
how can i make a splash screen in Dev C++ 4.0
Everything on the net is for the god foresaken microsoft vc
Please help me out.

RE: Splash screen!!!!

What is a splash screen, if not a form that closes after a certain amount of seconds.
I know that in borland you can add a timer, and when the timer launches the form close...

My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work

RE: Splash screen!!!!

All a splash screen is is a form with your graphics, etc., a time, and the borders and icon ususally turned off. I can tell  you how to do this with Borland.

Is there not a Dev C++ forum here?

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.

RE: Splash screen!!!!

(OP)
Okay 2ffat. I also have Borland Turbo C++ 5.0.  How can I make a splash screen in Borland C++? I am really poor with Win32 Programming.

RE: Splash screen!!!!

Unfortuately, my instructions are for BCB (Borland C++ Builder). If you want those, I can post them.

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.

RE: Splash screen!!!!

(OP)
yes please post them. that would be great. If all else fails then i can make the compat w/ the others

RE: Splash screen!!!!

OK, here goes. Remember this is for BCB.
1) After creating the main form, create a second form with its BorderIcons set to false, BorderStyle to bsDialog, FormStyle to fsStayOnTop, and Position to poScreenCenter.

2) Add whatever you want to the second form, bitmaps, text, etc.

3) Add a Timer control to the second form.

4) Create a OnTimer handler for the Timer control. Put the code Close(); in the handler.

5) Now you will need to create a function that will remove the caption from the second form. You can do this by creating a function prototype in the second form's private user declarations and then adding the function itself. All this function will do is call the base class and the remove the caption.For example, if the function was defined as void __fastcall CreateParams(TCreateParams &Params); then the function would be
void __fastcall CreateParams(TCreateParams &Params)
{
  TForm::CreateParams(Params);
  Params.Style &= ~WS_CAPTION;
}


6) Finally, you need to call the form in the main form's WinMain function. In BCB, you put the following code in the try loop that is created for you. Put it after the Application->Initialize(); call. If you named the second form Form2 the code would look like
Form2=new TForm2(Application);
Form2->Show();
Form2->Update;


By the way, these instructions came from Borland C++ Builder How-To by John Miano, Tom Cabanski, and Harold Howe. The latter's web site is www.bcbdev.com .

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.

RE: Splash screen!!!!

I forgot one very important detail. On Form2's close, you need to free all resources. You can do this with Action = caFree;

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close