Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splash Screen

Status
Not open for further replies.

Ciara

Technical User
Dec 12, 2000
6
GB
Could anybody possibly tell me how to set up a splash screen in tcl/tk
 


This below should do the job. However, the splash screen still look like a normal window.

JP Tanguay

#------------------
# hide the main window
wm withdraw .
Splash; # call your proc that create and display a toplevel named .splash
after 5000 {
destroy .splash
wm deiconify .
}
# do your normal UI setup
label .l -text "Main window"
pack .l
#-----------------------
 
To prevent the splash screen from looking like a "normal window" (in other words, having the title bar, resize handles, etc.), execute the wm overrideredirect command. This tells the window manager to "ignore" the window. (The weird name for the command comes from deep within the bowels of window manager interaction. Don't ask anything more about it. >:):O> )

So, if you're creating a splash screen with a top-lvel window name of .splash, you'd simply:

Code:
toplevel .splash
wm overrideredirect .splash 1
- Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top