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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to script a window to make it visible only for a few seconds?

Status
Not open for further replies.

danielos

Programmer
Aug 14, 2006
2
PL
Hi,

I'd like to open a window with my logo at start of my Application and let it be open for 10-15 seconds. After this time a login window should appear automaticly. "Only" one problem is ... I don't know how to write the script for something like that. I've just started with PowerBuilder and didn't find anything about this problem in Getting Started book :(

Thanks for any help.
 
In the open event of your application's main window (or better yet some sort of postopen event) open your 'splash' window. In the open event of your splash window insert the following:
timer(1,this). In the timer event of your splash window you will need some sort of counter (instance variable) to count the seconds. Once the counter reaches your desired number, close the window.

Matt

"Nature forges everything on the anvil of time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top