• 0

[Delphi 6] Creating a Splash Screen


Question

Hello,

After many attempts, I have been unable to create a splash screen for my application! Can someone help me by creating an example splash screen? If you help me and the attempt is successful, I will let you put your name on the splash screen with a copyright (e.g. Splash screen programmed by [yourname]. or similar).

Please help! I really want to add a splash screen!

Thanks in advance! :D

Link to comment
https://www.neowin.net/forum/topic/267988-delphi-6-creating-a-splash-screen/
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Create your splash form. Create your main form.

In your Main forms FormCreate event, show the splash form:

procedure TForm1.FormCreate(Sender: TObject);
begin
  Form_Splash := TForm_Splash.Create();
  Form_Splash.Show;
  //run an initialization query or something here
end;

then close the splash form once the main form has completed loading and is shown.

procedure TForm1.FormShow(Sender: TObject);
begin
  if Assigned(Form_Splash) then
    Form_Splash.Close;
end;

note this method is only useful if your main form takes a few seconds to show up. I run a couple small queries in this time.

there are other methods that involve ttimers and modifying the dpr file.

hope this helps.

  • 0

Didn't work, I tried it but it was unsuccessful!

I got a load of errors when I attempted to run the program. If I send you the source code, would you be able to add the requried code to the application? :cry:

  • 0

just google it. anyway here is what you want.

just modify the project pas file. ie. if your project is call BiteMe then then modify the BiteMe.pas file

http://www.delphipages.com/tips/thread.cfm?ID=12

begin
 SplashScreen := TSplashScreen.Create(Application); //These 3 lines
 SplashScreen.Show;                                 //Added Manually
 SplashScreen.Update;                               //to load SplashScreen
 Application.Initialize;
 Application.Title := 'Application Title';
 Application.CreateForm(TForm1, Form1);
 SplashScreen.Hide;                                 //These 2 added
 SplashScreen.Free;                                 //manually to close Splash
 Application.Run;
end.

In Project Options, set SplashScreen Form to be an available form, not Autocreate.

  • 0

Thank you to everyone for your help.

I searched and found something on about.com in the delphi section. It was very easy and similar to the post made by liykh001.

Thank you to everyone. I will list you in the contributions list (if you want to appear in that list, please e-mail me with your name and country - smctainsh@gmail.com)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • seems pretty short sighted to just kick the can down the road like that. /s
    • anyone know of any VNC viewers that can do a full 4k and scaling to a mac from windows? RDP does it fine from a mac to windows and windows to windows... but I can't seem to get it to do 4k with UltraVNC and have it scaled to match from windows to the mac
    • At least on Mint... Debian is the 'backup' option (i.e. LMDE6) where as regular Mint is Ubuntu. also, Debian tends to play stuff a bit more conservatively than Ubuntu (at least based on Mint) with kernel and programs. also, even Mint's 'Update Manager' is more refined in regular Mint vs LMDE6 and installing NVIDIA driver is easier on regular Mint etc. not only that but LMDE6 only comes with Cinnamon which is a shame as they should offer the option for Xfce. I realize playing around with it in a VM one can install Xfce on it but it would be nice to have a more official Xfce release like how the regular Mint does. so while I heard Debian is a little snappier than Ubuntu (so better on some level), Ubuntu is probably the overall wiser choice unless people don't mind using a bit older stuff etc. but honestly, with some tweaks I would not mind if they changed the main Mint to Debian base instead of Ubuntu. but that's probably not likely to happen unless Ubuntu really does something the Mint team does not like. p.s. but I was building Super Mario 64 (native PC port on Linux) a while ago and it does not like regular Mint but works fine on LMDE6. but at that point I just transferred the final binary out of the VM back to my regular Mint and it works fine.
    • Excel is getting a highly requested PivotTable feature by Usama Jawad Microsoft Excel is one of the most popular software out there, both in the enterprise and personal space. It has a variety of use-cases including data analysis, data crunching, visualizations, and even planning and organization assistance. Microsoft regularly updates Excel with new features, and now, it is introducing a notable feature for PivotTables. Prior to today, PivotTables required a manual refresh from the user whenever new data was inserted into them. This wasn't a particularly complicated process, but it was tedious, so based on significant user feedback, Microsoft has decided to implement auto-refresh capabilities in PivotTables. The good thing is that Auto Refresh is enabled for all new PivotTables by default, but you can choose to disable it by selecting a PivotTable, navigating to the PivotTable Analyze tab, and then clicking on Auto Refresh. It is important to note that Auto Refresh is applicable on a per data source level, which means that the feature's state (on or off) will apply to all PivotTables derived from that source. Additionally, if Auto Refresh is disabled or a PivotTable is unable to synchronize, a message at the bottom of your workbook will say "PivotTable Refresh Needed". Once you click on it, all outdated PivotTables will refresh. Finally, you should keep in mind that external and asynchronous data sources do not support Auto Refresh and that the feature may become unavailable when a co-author is using an older version of Excel or if you are playing around with volatile functions like RAND() and NOW() in your data source. Auto Refresh for PivotTables is available right now in the Beta Channel for Excel for Windows version 2506 (Build 19008.2000) or later, and Excel for Mac version 16.99 (Build 250616106) or later. If you don't see it yet, it's better to wait as new capabilities are often rolled out in a staggered manner.
  • Recent Achievements

    • First Post
      Electronic Person earned a badge
      First Post
    • Week One Done
      CyberCeps666 earned a badge
      Week One Done
    • Very Popular
      d4l3d earned a badge
      Very Popular
    • Dedicated
      Stephen Leibowitz earned a badge
      Dedicated
    • Dedicated
      Snake Doc earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      628
    2. 2
      ATLien_0
      242
    3. 3
      Xenon
      163
    4. 4
      neufuse
      130
    5. 5
      +FloatingFatMan
      124
  • Tell a friend

    Love Neowin? Tell a friend!