Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Raymond Hartman
  Where is Raymond Hartman?
 columbia
 Maryland - United States
 Raymond Hartman
 To: TRUONG NGUYEN XUAN
  Where is TRUONG NGUYEN XUAN?
 HA NOI
 Vietnam
 TRUONG NGUYEN XUAN
 Tags
Subject: RE: About splash screen
Thread ID: 15692 Message ID: 15740 # Views: 2 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Saturday, September 28, 2002 3:23:33 PM         
   


>
> when i run vfp.exe, the first time window is "About microsoft visual foxpro" after that the command window appearance
> I want wite program to run the window the same "About microsoft visual foxpro" to start my program.
> Please help me

in your config.fpw file
SCREEN=OFF

in your main program
DO FORM splash WITH 60000 && show splash screen for one min
READ EVENTS

set the properties of the splash form
these settings are a must
WindowType = 0 && modeless
ShowWindow = 2 && as a top level form
Desktop = .t.

these settings are only to have the appearence of a splash screen, remove form attributes
AutoCenter = .t. && not a requirement
ClipControls = .f.
Closeable = .f.
MaxButton = .f.
MinButton = .f.

In the InitEvent of the form:
LPARAMETERS lnInterval
ThisForm.Timer1.Interval = lnInterval

In the Destroy event of the form:
clear events

Place a timer control on the form. In the TimerEvent place
ThisForm.Release()

Add what ever graphics and text to suit.

I have modified this to make a Security warning screen that requires user to ankowledge by clicking Accept button. If the form times out or user selects Reject the form returns .f. to main calling program or in the Unloadevent of the form

if !thisform.returnvalue
quit
endif

Attitude is Everything

ENTIRE THREAD

About splash screen Posted by TRUONG NGUYEN XUAN @ 9/27/2002 12:10:37 PM
RE: About splash screen Posted by Raymond Hartman @ 9/28/2002 3:23:33 PM