Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to position forms on screen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00153234
Message ID:
00153241
Vues:
22
>The application I've developed allows users to have any number of forms open at the same time. However, to activate one that is currently obscured can be a problem: the user must minimize the top form or drag its title bar out of the way of the underlying form. If a third form obscures the desired one, that one must be minimized or moved also.
>
>The menu of the application has a "Cycle Window" bar (_mwi_rotat), which allows the user to cycle through the available forms. I have found the "Arrange" bar (_mwi_arran) to be of little help. I would like to put a "Window" bar on the menu that allows the user to select an open form by name, rather than cycling through them in sequence. How can this be done?
>
>Also, is it possible to have a "Cascade" function which positions the title bars of all open forms in an accessible place?
>
>Any other suggestions would be appreciated.
>
>Thanks!
Hi Chris,

I believe that if you include the _mwindow pad from generating a quick menu (and removing the options that won't be availabe such as the Command Window). VFP will take care of listing the open windows for you.

As far as the Cascade feature, you'll have to code that yourself. You can use SYSMETRIC() to get the height of the title bar, and the properties of each form to adjust the top and left positions. If I recall correctly, there was a tip in a recent issue of FoxPro Advisor that showed a quick way to do this.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform