Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically accessing debug window
Message
From
26/03/2019 09:25:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Programmatically accessing debug window
Miscellaneous
Thread ID:
01667553
Message ID:
01667553
Views:
50
In Windows 10, when I switch between single-monitor and dual-monitor mode, VFP9 sometimes doesn't restore its debug window to the current monitor. Typing SET STEP ON or ACTIVATE WINDOW DEBUG brings up the debugger, but it's positioned off-screen somewhere. I haven't figured out a way to bring it back to the actual monitor without resetting it to default, or cascading all the windows which messes up all the other windows size and position I have open.

Does anyone know how to programmatically access it?

Is there an existing VFP tool to enumerate desktop windows, return HWNDs to them, allow searching by name, etc., so I can do something like this:
lo = CREATEOBJECT("desktop_window_helper")
lhwnd = lo.FindDesktopWindow("Visual FoxPro Debugger")
lo.SetWindowPosition(lhwnd, 0, 0, lo.GetWindowWidth(lhwnd), lo.GetWindowHeight(lhwnd))
??
Next
Reply
Map
View

Click here to load this message in the networking platform