Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opaque window borders in Aero
Message
From
05/02/2013 22:20:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Opaque window borders in Aero
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 7
Miscellaneous
Thread ID:
01565233
Message ID:
01565233
Views:
60
Likes (1)
Ran into a head-scratcher that was bugging me for a while -- I had some programs that had translucent borders on the main window under Aero and some that weren't. Finally figured out the problem. Turns out that if you try to maximize _screen by changing WindowState while it is not visible, the window border ends up opaque.

Let's say you create a project with a main program that contains:
_SCREEN.VISIBLE = .T.
_SCREEN.WINDOWSTATE = 2
WAIT WINDOW "Hello!"
and a CONFIG.FPW with the following:
SCREEN=OFF
RESOURCE=OFF
compile to EXE then run the resulting program -- it works OK.

If we now reverse the first two lines so that we try maximizing the screen before it is visible:
_SCREEN.WINDOWSTATE = 2
_SCREEN.VISIBLE = .T.
WAIT WINDOW "Hello!"
You should now see that the window borders are opaque.
Reply
Map
View

Click here to load this message in the networking platform