Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opaque window borders in Aero
Message
De
05/02/2013 22:20:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Opaque window borders in Aero
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows 7
Divers
Thread ID:
01565233
Message ID:
01565233
Vues:
61
J'aime (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.
Répondre
Fil
Voir

Click here to load this message in the networking platform