Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert _SCREEN coordinates to TL coord.?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to convert _SCREEN coordinates to TL coord.?
Divers
Thread ID:
00624866
Message ID:
00624866
Vues:
51
Hi,

I'm looking for a possibility to reliably convert an in-screen form's coordinates (Left, Top, Height) to coordinates I can use to put a Top-Level form at exactly the same place and make it the same height as the form that is being displayed in screen.

I already tried things like ...
TLForm.Top = _VFP.Top - _VFP.Height - _SCREEN.Height
... but one or more toolbars might docked anywhere.

I know that I could use several SYSMETRIC() parameters to find out the height of the menu bar and _screen border etc., loop through the forms collection to find all toolbars and so on. Maybe there's a better (and easier) solution for this?

Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform