Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Default Properties
Message
 
 
To
09/03/1999 13:04:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00195458
Message ID:
00195734
Views:
35
>>>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.

Hi Erik,

Thank you for your suggestion. Barbara's suggestion will suit me best.

I appreciate the time you took to reply.

Regards...Rex (from the 'Land Down under')
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Previous
Reply
Map
View

Click here to load this message in the networking platform