>>>>>>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.