Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert _SCREEN coordinates to TL coord.?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to convert _SCREEN coordinates to TL coord.?
Miscellaneous
Thread ID:
00624866
Message ID:
00624866
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform