Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering function does not work if _SCREEN=OFF
Message
De
17/04/1997 11:43:07
 
 
À
13/04/1997 23:39:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00028147
Message ID:
00028718
Vues:
32
>I've just discovered something interesting.
>
>I have a function like this to center a BMP on the screen.
>
>_screen.Image.Left=(_screen.Width/2)-(_screen.Image.Width/2)
>
>When I run from the EXE, the _SCREEN visible equal .F. because I need to do some setup and once completed I put it to .T.
>
>However, when it is .F., the value of _SCREEN.WIDTH will not be the real value because the screen is not visible at the time of that function.
>
>Any idea on how to solve this situation?

The only to solve that is that I have to put _screen.Visible=.T. before processing my centering stuff.

If anyone find a way to center those images while keeping _screen.Visible=.F., I will appreciate a comment.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform