KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Changing the splash screen
PRODUCT: 4D | VERSION: 12 | PLATFORM: Mac & Win
Published On: March 24, 2011

In previous versions of 4D, the image used for the splash screen was saved as a resource. Because of this, it was possible to programatically change the image by changing the resource.

As of 4D v11 SQL and 4D v12, this has changed so that a resource can no longer be used, so this particular method is no longer possible. There are however a few alternatives for programatically changing a splash screen:

  • Use a Toolbox image that you programatically change.

    • create an image in the Toolbox and name it something like "splash_screen"

    • create a method that changes the Toolbox image. The code would use the SET PICTURE TO LIBRARY command and look something like the following:

      SET PICTURE TO LIBRARY($newPicture;$ID_From_Step_One;"splash_screen")

    • Run the above code each time you want the splash screen to change.


    Note, the splash screen image is loaded before the On Startup method runs, so for a client to see the new image, they would have to log in again.


  • Disable the built in spash screen and use a custom splash screen process. An example of this is detailed in the Tech Note 4D Spash Screen.