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

Click here to load this message in the networking platform