Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I know when the main VFP window is being resized
Message
 
 
To
01/10/1997 11:42:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00052509
Message ID:
00052679
Views:
37
>>That would be a neat trick to define a Resize procedure for _screen form (or any other proc for _screen since it is already created)
>
>Hi Mark,
>
>Perhaps I misunderstood the original question. What I understood was the Francois wanted an image to always be centered in the main VFP window (i.e. _SCREEN). That is, if _SCREEN is resized by the user, the image repositions itself to the center of the _SCREEN. As far as I know this cannot be done using the _SCREEN RESIZE event as _SCREEN has no RESIZE event. So, I create a form that I place my image on plus a timer which fires every .5 seconds and centers the form with the image. If the user resizes the screen, the timer fires ( after a very short delay ) and recenters the form and thus my image. Sorry if I was unclear or misunderstood the question.
>
>Bill

You understood correctly. That is why I said this would be a "neat trick" since _screen has already been created (implicit message -- so there is now way, AFAIK, to backdoor in a _screen resize method or any other method for that matter)
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform