Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Centering function does not work if _SCREEN=OFF
Message
From
17/04/1997 11:43:07
 
 
To
13/04/1997 23:39:11
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00028147
Message ID:
00028718
Views:
34
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform