Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically accessing debug window
Message
From
26/03/2019 11:35:46
 
 
To
26/03/2019 11:28:42
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01667553
Message ID:
01667573
Views:
44
>>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))
>>
>>
>>??
>
>Rick, something like this?
>
>
>MOVE WINDOW "Visual FoxPro Debugger" TO 0, 0
>
That works. Thank you!
Previous
Reply
Map
View

Click here to load this message in the networking platform