At 06:56 2009-07-28, Peter Hart <[email protected]> wrote:
>Tried your suggestion without success.  Incidentally the _Screen.Height
>= 0  made the app open up showing the ribbon with about an inch of
>desktop.
>Have solved it with:
>
>_Screen.Windowstate=2
>_Screen.Width = Sysmetric(1)
>_Screen.Height=Sysmetric(2)

      I am puzzled why
           _screen.windowstate=2
did not work for you.  Setting the width and height as above does not 
quite work.  You are liable to display something to _screen that will 
not show up on the monitor.

      The sysmetric() values for width and height are for the whole 
screen.  There is no allowance for the taskbar or the titlebar and 
menu bar of the VFP main window.  My system runs at 1024x768.  If I 
maximise the main VFP window,
           ? _screen.height
prints 700.  If I were to set _screen width and height to the 
sysmetric() values, there would be 68 pixels high of _screen that 
would not fit on the screen.

[snip]

Sincerely,

Gene Wirchenko



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to