Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: DEREK DODOO
  Where is DEREK DODOO?
 READING, UK
 United Kingdom
 DEREK DODOO
 Tags
Subject: RE: FORM NOT SIT WELL ON SQUARE SCREEN
Thread ID: 189217 Message ID: 189233 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Thursday, August 14, 2008 2:08:44 AM         
   


> Dear Expert,
>
> I'm having problems with the apperance of the form on the screen.
>
> When I display the form in a rectangular screen, everyting comes ok, however
>
> when I display the same form on a square screen part of the form on the right hand side is truncated.
>
> What settings do I need to introduce to correct this issue, so that the form can automatically adust itself to sit well irrespective of the shape of the monitor.
>
>
> Thanks


Hi Derek
You have VFP6.
In the init of the form put this code (after your code)
this.windowstate=0  &&normal
this.resize()

in the resize event put your resizing code for ex if you want the full screen form:
this.top=0
this.left=0
this.width=sysmetric(1)
this.height=sysmetric(2)


if you want to resize the form all controls (except containers) load on your form an instance of the class resize in solutions.vcx and rename it "resizable" (open it on design mode on the class form toolbar)
and in the event resize of the form put this code
this.resizable.adjustcontrols()

in this case the property "borderstyle=3"... resizable form
Regards
Yousfi Benameur

ENTIRE THREAD

FORM NOT SIT WELL ON SQUARE SCREEN Posted by DEREK DODOO @ 8/13/2008 9:38:22 PM
RE: FORM NOT SIT WELL ON SQUARE SCREEN Posted by Stefan Wuebbe @ 8/13/2008 10:03:08 PM
RE: FORM NOT SIT WELL ON SQUARE SCREEN Posted by Yousfi Benameur @ 8/14/2008 2:08:44 AM