Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't get this form to close Please help
Message
From
15/07/1999 09:13:45
 
 
To
15/07/1999 08:39:07
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00241718
Message ID:
00241733
Views:
13
>I am trying to get the following PRG code to work
>It runs but the form will not release
>
>Thanks in advance
the following changes fix the problem:
xTmpFormMess = CREATEOBJECT("ApMess","Running Installation Please Wait...")
*  Show form after init has finished
xTmpFormMess.Show()

DEFINE CLASS apMess AS FORM
DoCreate = .T.
CAPTION = 'Please Note!'
WIDTH = 430
WINDOWTYPE = 1
VISIBLE = .T.
AUTOCENTER = .T.

ADD OBJECT lblZmess AS Label WITH ;
AutoSize = .T., ;
FontSize = 20, ;
Caption = "", ;
Height = 39, ;
Left = 10, ;
Top = 96, ;
Width = 232

ADD OBJECT tmrMess AS TIMER WITH ;
INTERVAL = 3000

PROCEDURE tmrMess.TIMER
THISFORM.RELEASE()
ENDPROC

*-- Form init
PROCEDURE INIT
LPARAMETERS lcMessage
THISFORM.lblZmess.CAPTION = lcMessage
*  Don't start or trigger the timer during init
thisform.tmrmess.enabled = .f.
thisform.tmrmess.reset()
ENDPROC

PROCEDURE SHOW
*  set up the timer to start when form is shown
thisform.tmrmess.enabled = .t.
ENDPROC
ENDDEFINE
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform