Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property click is read only
Message
From
07/11/2000 11:40:27
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00438468
Message ID:
00438823
Views:
6
Timothy,
I have done this in the past by subclassing 'Form' and assiging the different procedures whatever code I want. A stripped down example follows:



local testForm

testForm = createObject("myForm")
testForm.visible = .t.
testForm.ExitButton.visible = .t.
READ EVENTS

DEFINE CLASS myForm AS Form
PROCEDURE INIT
this.addObject("ExitButton","myExit")
ENDPROC
ENDDEFINE
DEFINE CLASS myExit AS CommandButton
PROCEDURE CLICK
thisform.release()
ENDPROC
PROCEDURE UNLOAD
CLEAR EVENTS
ENDPROC
ENDDEFINE
Paul A. Busbey
Victoria Insurance
Previous
Reply
Map
View

Click here to load this message in the networking platform