Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP SP2 - Issues - Can any of it be used?
Message
From
24/10/2007 19:42:39
 
 
To
24/10/2007 14:06:55
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01262764
Message ID:
01263383
Views:
17
>>Hi Jim.
>>
>>>I have run into major problems running SP2 on Vista with Aero turned on, not running in Admin mode. Forms lose title bars, forms leave their image on other forms they are dragged over, the Close button at the top right of the form turns into a strange gray X when you click on it. On XP, or Vista with Aero turned off, or Vista running as Administrator the problems do not manifest themselves. I uninstalled VFP completely, reinstalled it, then applied SP 2.
>>
>>This happens with forms with BorderStyle set to something other than 3-Sizable. This also happens in RTM and SP1 and was supposed to be fixed in SP2, but there are several workarounds:
>>
>>- Set BorderStyle to 3, MinHeight and MaxHeight to Height, and MinWidth and MaxWidth to Width, so the form can't be resized.
>>
>>- Set Desktop to .T. This has other issues you need to be aware of, but has the added bonus of making the form support Aero Glass (ie. transparent border, etc.)
>>
>>- See Calvin's blog (don't have the URL here at home) from 04/27/2007 for a hack.
>>
>>- Tracy Pearson found that adding ACTIVATE WINDOW (This.Name) IN SCREEN (for forms inside top-level forms, use the name of the TLF instead of SCREEN) to Activate resolved the issue.
>>
>>Doug
>
>Another option is to set the BorderStyle in the parent class. Most of our forms are not resizable, so I set BorderStyle = 2 in our form classes. Only when you change the BorderStyle in the SCX is there a security issue.

In the misbehaving app, Borderstyle is "3 - Sizable (default)" in the scx and in its parent form classes, so there is no Borderstyle property in the SCX record for this form. I even browsed the .scx to make absolutelt sure. So Calvin's 04/07 blog explanation doesn't apply.

One strange thing is that the border sometimes appears, sometimes not. Usually it appears the first couple of times I open the form after starting the app, then the same form will open without the border. Seems like it would be consistent if it were a security issue. Very strange.

I'll try some of Doug's suggestions, but if all those workarounds are necessary, then SP2 certainly did not achieve Vista compatibility.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform