Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Desktop (application) and dual monitors
Message
From
24/01/2004 14:12:32
 
 
To
24/01/2004 12:25:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00870191
Message ID:
00870301
Views:
10
>>Hi Jim,
>>
>>The forms should be toplevel in order to do that.
>>
>>>Is there some way to get a VFP app that uses the VFP desktop to display any of its forms on the second monitor?
>
>I have an user who uses dual monitors. He just spreads _screen maximized over both, and arranges the forms the way he likes. I've had a problem with alert.prg, which displays a centered dialogue, which appears with a split personality syndrome. So I've added some checking - if _screen.width>2000, .left=_screen.width/4. But that's all - it works, and I've never seen dual monitors myself.

Hi Dragan,

The only way I was able to get a semblance of working dual monitor with an app. that has the VFP desktop active and modeless forms working IN it was to first de-maximize the VFP desktop, then stretch it's width and height (width across the 2 screens, height just top to bottom).
HOWEVER, it really doesn't work IN MY SETUP using a Matrox G400 MAX):
1) Apparently because 1 monitor (primary) is 1280x1024 and the other is 1024x768, the height in the lower resolution seems to keep the higher resolution's value, forcing some part of it below the second screen's edge.
2) Stretching the screen across the second monitor results in the standard gray background of the VFP desktop being in about 1/8th of the second screen, the balance being white.
3) In addition, the area that is white has a blue bar across the bottom, about 1/10th the way up, seeming to be the old style status bar.
NOTE: #2 and #3 disappear as soon as a form opened is closed again.

I then tried with both screens at 1280 by 1024. By adjusting the height first (after de-maximizing) then the width, then open/close a form, I was able to avoid most of the pitfalls above, now only losing the secondary monitor's start-bar area.
HOWEVER, a few things still don't work properly:
1) As you note, centred dialogs have the split personality.
2) Maximizing a form results in the form being maximized ACROSS BOTH SCREENS.

In both attempts, possibly as a result of the programming in the app., startup was maximized to the primary screen. Interestingly too, a form that I had started, moved to secondary, stopped, shut app down, restarted app then started the same form ended up having the second form invisibly shown in the secondary monitor (which I found out by re-dragging to widen the window).

I then tried Mike Asherman's MONTAGE utility. I closed the VFP app., dragged it into the MONTAGE 'control window' (my term), started the app., dragged the right and bottom as I wanted, then closed the app.
Lo and behold, it re-opened as I had set it last, across both monitors.

All in all it looks like dual monitor support is hazardous at best with VFP.

cheers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform