Sign in Join
Wiki copytemporary

SplashAbout/Advanced Use

SplashAbout properties tester Application


Properties

When dropped onto a new application mainform, the property defaults will show a Splash Screen and About window that look something like this:

The default screens are probably OK for a quick one-off app that is not for commercial use. It shows useful information for a developer.

However; if you think they look a bit uninspiring, the SplashAbout component is capable of considerable customisation from its default settings, and there are many properties available to help you achieve a unique and very inspiring result.

Here are the SplashAbout properties you can change for each kind of customisation:

Personalising the Splash screen

Personalising the About screen

Personalising the License Screen

Personalising the Credits Screen


How To...

How to show a shaped Splash screen

Properties to set:

MaskType

The simple thing to do is to choose one of the built-in masks (saRoundedRect, saBigCog, saBigFlower and saBigSplash) If you choose saUserMask then you need to make a 2-colour mask graphic in the .BMP format. You can optionally also make a corresponding BitMapMaskColor image. Note: There are some example images deployed in the /exampleapp folder of the distribution archive

How to make a BitMapMaskMono image

If you want a shaped colour splash screen then you need to make a corresponding BitMapColor image

How to make a BitmapMaskColor image

You would normally do this before making the BitmapMaskMono image


How to show a license button on the About screen

Properties to set:

LicenseFile

Standard licences (GPL etc)
User licenses

How to show a Credits button on the About screen

Properties to set:

ShowCreditButton

CreditLines

CreditTextFileName


How to show a 'Powered by Lazarus' pre-splash graphic

Properties to set:

That's it!


How to show different text in the Splash and About screens

Properties to set:

Description and ShowDescription
TitleStyle and UserTitle
Organisation
FormSplashTextAlign and FormAboutTextAlign
LicenseFile
Application Version info

How to show a graphic in the Splash and About screens

Properties to set:

BitmapBackground
FormSplashWidth/Height and FormAboutWidth/Height

How to set a custom Icon

Properties to set:

TitleStyle
Icon

How (or why) to avoid a bigger executable by using external graphic files

SplashAbout has been designed from the start to be very lightweight. Splash and About dialogs are hardly the most important part of an application so the component is designed to add as little as possible in both filesize and effort. Lazarus/fpc are extremely efficient in storing resources in executables, however adding SplashAbout with embedded graphics will make your executable bigger. If you choose to set a huge Splash and/or About dialog with correspondingly huge graphics, maybe it will be worth 'going external'

Here are the stats:

If this difference is important to your particular deployment, then read on...

Properties to set:

Graphics
ExternalFile<propertyname>
ExternalFileOptions

How to use a large background image

Properties to set:

ResizeMode

How to deploy an application that uses the SplashAbout component


Is it OK to...

Some information about licensing, updating the source etc.

Is it OK to use SplashAbout in a commercial application?

pascal
 This library is free software; you can redistribute it and/or modify it
 under the terms of the GNU Library General Public License as published by
 the Free Software Foundation; either version 2 of the License, or (at your
 option) any later version.
 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
 for more details.

Is it OK to alter/change the code for my own version of SplashAbout?

Page written by Torrenter 20:06, 2 June 2014 (CEST)


See Also

SplashAbout component main page


From the Free Pascal wiki, page "SplashAbout/Advanced Use", as it stood on 2014-06-04 after a change by Torrenter, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 3, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.