Tailoring SpecTcl's splash screen. |
SpecTcl Home General Information User Guide Programmer's Guide Obtaining and Installing
A splash screen is an introductory window that pops up while a program is initializing. Splash screens usually have the following attributes:
SpecTcl now incorporates a splash screen package. The package is open source re-distributed under the license terms. The copyright holder of the package is the "Swedish Institute of Computer Science". I would like ot acknowledge and thank them for releasing this package into the open source freely redistributable domain.
The SpecTclRC.tcl file in $SpecTclHome/Skel, as of version 3.2 creates and initializes a splash screen. The following lines of code setup the initial splash screen:
lappend auto_path $SpecTclHome/TclLibs package require splash package require img::jpeg set splash [splash::new -text 1 -imgfile $splashImage -progress 6 -hidemain 0] splash::progress $splash {Loading button bar} 0
The splash screen can be tailored in several ways; we'll mention two here:
Splash screen progress indicators and text can be tailored as follows:
splash::progress $splash progress_text progress_incrementWhere: