Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pickup _screen windowstate change?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00085679
Message ID:
00085724
Vues:
29
>>>>>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...

Nevermind last, got past that. Now need to trim form size somehow so that it won't be different from "genuine" controls...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform