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
From
01/10/1997 14:58:32
 
 
To
01/10/1997 13:21:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00052509
Message ID:
00052718
Views:
41
>>>>>>Hello,
>>>>>>
>>>>>>I would like to keep an image centered in the background of the main window but how do I know when the main window is being resized ?
>>>>>>
>>>>>>Thanks
>>>>>
>>>>>There is a RESIZE event for each form. Put code there to check.
>>>>>
>>>>>HTH
>>>>>Barbara
>>>>
>>>>Hi Barbara,
>>>>
>>>>But the main VFP window doesn't have a RESIZE event, does it? I use a timer in the form I put my image on.
>>>>
>>>>Bill
>>>
>>>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 did not misunderstood the question. There is only properties or methods associated to _SCREEN, so I guess I'll have to use a timer.
>
>Thank for your help.

Hi Francois,

If you set it up right, it works pretty well. I DISABLE/ENABLE the timer and HIDE the form depending on whether forms are running in the app.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform