Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pickup _screen windowstate change?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00085679
Message ID:
00085716
Views:
23
>>>>I want to reposition forms from top/left to center based on whether _screen is normal or maximized. Is there a (hopefully easy) way to do this?
>>>
>>>There is no natural way because _SCREEN doesn't have events. One more solution is timer to check _SCREEN.Left,Width and so on. Another way is to disable(remove) real _SCREEN buttons (e.g. _SCREEN.Maxbutton=.f.) and provide toolbar or even separate buttons imitating regular ones. Now you have Button.Click events.
>>
>>Thanks, Edward...I was afraid of hearing that ("no natural way")...you've got me started on some ideas, anyway...I guess another would be to go with SCREEN=OFF and a top-level to act as the main screen, so that I can get control of the events. This may be a little tricky in such a large app, however...

(code snip...)

Got it to generally work, but so far, I can't position it above the menu bar...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform