Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design time event handler
Message
From
09/05/2007 12:33:43
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01221889
Message ID:
01223848
Views:
32
>>>>That is one thing I do like about .Net in that you have a DesignMode you can check and deal with things as needed. I think if you design things around that kind of paradigm, it would at least be somewhat familiar turf.
>>>
>>>I think the DesignMode Property can easily be made by such a property set to "=(_Vfp.startmode=0)", then you could put code in an eventhandler depending on object.DesignMode.
>>>
>>>But that may not be every aspect of design mode, is it?
>>
>>No, not really. I frequently run things within the IDE, so how would you be able to tell the difference between debugging an application and "DesignMode" using that method? There has to be some internal flag within VFP that knows the difference.
>
>You can add this property to the screen object and set it back and forth.

Sure, you could write a wrapper around MODIFY FORM and MODIFY CLASS to set that flag, but what would you use to reset it?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform