Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting a FoxPro 2.x application to VFP 9
Message
From
03/05/2006 15:21:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/05/2006 14:52:43
Mark Phillips
Erw Custom Programming Inc.
Waterford, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01118877
Message ID:
01118885
Views:
12
>Help
>
>I am converting a foxpro 2.x program to vfp9. I would like to use the full screen (no mater what the resolution or monitor is) to define two windows (top/bottom). My first approach was to do this
>
>_screen.WindowState = 2
>gnFullH = _screen.Height
>gnFullW = _screen.Width
>
>Bases on the numbers in gnFullx and some major division, I would Define Window top (top 2/3 of the _screen) and Define Window Bottom (bottom 1/3 of the _screen)…
>
>What I found out is that the numbers in gnFullx is not a good number to use when using a define window command!
>
>My question
>Can this be down using the Define Window Command or what the Best solution? Please note that all the old code browses/input/message screens all use the Define Window Command.

The Create Window command uses foxels - i.e. the size of the window in the end depends on the fontmetric of _screen.font* properties.

The simpler workaround is to create two forms in the sizes you want, show them and use them as windows. Show/activate/AnyOtherWindowCommand Window (topform.name) would do.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform