Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menus in Forms
Message
From
05/12/2012 18:05:10
 
 
To
05/12/2012 06:30:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01558747
Message ID:
01558886
Views:
106
Setting Desktop, either to .T. or .F., works perfectly.

As the Desktop property is readonly, I cannot change its value inside the form's code. So I created a variable (bDeskTop) to set this property in the definition of the form, but whatever is the value of bDeskTop (.T. or .F.) it only works in the first invocation on the form. The next time it simply ignores the value.

There is a way to workaround this situation?
 bDeskTop = .F.

 oMyForm  = CreateObj ("frmMyForm") && The form will be created inside _Screen.
 oMyForm.Show ()

 Clear Events

 bDeskTop = .T.

 oMyForm  = CreateObj ("frmMyForm")  && It doesn't change, the form is created inside _Screen again.
 oMyForm.Show ()

 Clear Events

 Define Class frmMyForm as Form
         . . . 
        Desktop = bDeskTop
         . . . 
 EndDefine
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform