Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Default Properties
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00195458
Message ID:
00195640
Views:
22
>>In my form class, I set the default properites that the form assumes when it is called. Is there a way of determining what the original default values were when the form was instantiated? Specifically, I want to know the default form Height and Width properties. Even if the user resizes the form.
>
>ResetToDefault() method should restore to original setting from an object upon loading.
>
>Thisform.ResetToDefault( "Height" )

Rex- I looked around and couldn't find a way to determine the original form height without resetting it. If you need to know it form calculations, and don't want to set it, you could do something like:

lnCurrentHeight = THISFORM.Height
THISFORM.LockScreen = .T.
Thisform.ResetToDefault( "Height" )
lnOriginalHeight = THISFORM.Height
THISFORM.Height = lnCurrentHeight
THISFORM.LockScreen = .F.

The lockscreen commands should keep the visual 'effects' at bay.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform