can you tell me where can I find a free C++ Builder component for displaying
a splashscreen?
I tried this one: http://www.anyware.co.uk/anyware/apptools/
but I can't (or rather don't know how to) install it in Builder 6 PE (lol).
Thanks,
Moon.
You don't need a component for that because it's quite simple
once you know how.
Add a new form to your project and make it look the way that
you want your splash screen to look like. Then modify the
ProjectName.cpp file - the WinMain modual - to look something
like:
//-------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
//-------------------------------------------------------------
USEFORM( "Main_Mod.cpp", Main );
// I've seen where the following line:
USEFORM( "Splash_Mod.cpp", Splash );
// was changed to - but I've never done it that way
USEUNIT( "Splash_Mod.cpp" );
....
USEFORM( "Another_Mod.cpp", Another );
//-------------------------------------------------------------
#include "Splash_Mod.h" // <--- add this
//-------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Splash = new TSplash(Application);
Splash->Show();
Splash->Update();
Application->Initialize();
Application->Title = "IDEAtum Formulas";
Application->CreateForm(__classid(TMain), &Main);
// remove this
// Application->CreateForm(__classid(TSplash), &Splash);
Application->CreateForm(__classid(TAnother), &Another);
Splash->Hide();
Splash->Close();
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
return 0;
}
//-------------------------------------------------------------
That's the basics. Good luck.
~ JD
---- this is the "splash screen"
Start = new TStart(Application);
Start->Show();
Start->Update();
Application->CreateForm(__classid(Tform1), &form1);
... now all other forms
---- close the splash screen
Start->Hide();
Start->Close();
delete Start;
--- start the application
Application->Run();
Detlef
"Moon" <nos...@nospam.net> schrieb im Newsbeitrag
news:4069...@newsgroups.borland.com...