Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: George Kelly
  Where is George Kelly?
 Dromore
 United Kingdom
 George Kelly
 To: Steve Hanlan
  Where is Steve Hanlan?
 Norwalk
 California - United States
 Steve Hanlan
 Tags
Subject: RE: Taking advantage of larger screen resolutions
Thread ID: 83768 Message ID: 119391 # Views: 52 # Ratings: 0
Version: Visual FoxPro 7 Category: General VFP Topics
Date: Monday, January 22, 2007 11:32:54 PM         
   


> > My applications are currently developed on W98. Screens are 800x600.
> >
> > Happy days are now gone. The application has to work on any resolution setting.
> >
> > I'd like to code my application to detect the user resolution setting and adjust each form to fill the screen e.g. to 1024x768.
> > However, in doing so, I'd ideally like the controls to proportionally reposition.
> >
> > I've been scouring the archives on this forum and have tried a number of the suggestions.
> >
> > I've tried Sizer2. Its great for 95% of my work, but in some screens with a large number of objects, some lose their relative alignment and in some cases can overlap.
> >
> > I've tested the reschange.scx from the STRUCT download. However, I don’t want to change the user resolution setting.
> >
> > If there's a solution for doing so, I'd settle for proportional repositioning, so the screen is always filled.
> >
> > However, I'd like to take advantage of longer and wider list controls as would be possible with the higher resolution.
> > This would mean a) repositioning but NOT resizing controls (e.g. command buttons)
> > b) repositioning AND resizing list controls and image controls.
> >
> > Ive been playing with sysmetric(1) and sysmetric(2) to detect the user screen resolution, then repositioning and resizing EACH control accordingly, by hard coding the top, left, width and height properties.
> > It works perfectly on my W2000 computer and on XP.
> > But… it’s a massive undertaking to hard code every screen in my application, for every possible screen resolution.
> >
> > Is there an easier way?
> >
> > George
> > ideasforgardens.com
>
> George
>
> I require this functionality in all my forms.
>
> I put a funcion call into the init of each of my base controls that looks at the sysmetrics and adjusts sizes according to parameters that I have added. (This allows me to set the size on some controls, but leave the inner workings at original, or some other relative size). These mostly run a default setting, (of fully scale to screen), so that all forms and controls default to full size without any additional programming.
>
> The resize code is a method in my default form, so each control has ... THISFORM.RESIZE(THIS) in the INIT method.
>
> All subclassed controls will inherit the resizing.
>
> hth
>
> Steve

Thanks Steve
This looks like a very good idea for new projects.
The 2 solutions I have used so far were actually very quick and easy to apply to quite a lot of forms.
When designing from scratch I will certainly have a look at your method.
I would like more specific control over some controls, particularly list boxes, and of course, I'd like to make use of the "white space" created when a blanket resize factor is used.
Theres plenty of options!

George

COMPLETE THREAD

Taking advantage of larger screen resolutions Posted by George Kelly @ 12/12/2005 5:19:12 PM
RE: Taking advantage of larger screen resolutions Posted by Eric den Doop @ 12/12/2005 5:34:51 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/13/2005 5:42:03 PM
RE: Taking advantage of larger screen resolutions Posted by Eric den Doop @ 12/13/2005 5:47:15 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/13/2005 6:00:58 PM
RE: Taking advantage of larger screen resolutions Posted by Dale Dedoroy @ 12/13/2005 11:03:46 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/14/2005 1:39:39 AM
RE: Taking advantage of larger screen resolutions Posted by Dale Dedoroy @ 12/14/2005 6:00:28 AM
RE: Taking advantage of larger screen resolutions Posted by Frank Cazabon @ 12/9/2006 6:40:31 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/10/2006 8:37:43 PM
RE: Taking advantage of larger screen resolutions Posted by Frank Cazabon @ 12/11/2006 2:14:38 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/11/2006 3:46:23 PM
RE: Taking advantage of larger screen resolutions Posted by Soykan OZCELIK @ 12/7/2006 1:01:41 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 12/7/2006 10:20:15 AM
RE: Taking advantage of larger screen resolutions Posted by kevin woods @ 12/7/2006 11:42:03 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/21/2007 12:11:59 AM
RE: Taking advantage of larger screen resolutions Posted by Mike Yearwood @ 1/20/2007 1:44:11 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/20/2007 11:49:10 PM
RE: Taking advantage of larger screen resolutions Posted by Steve Hanlan @ 1/22/2007 11:16:48 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/22/2007 11:32:54 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/23/2007 1:40:56 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/23/2007 2:01:54 AM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/23/2007 2:21:53 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 11:07:58 AM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/29/2007 1:06:17 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 2:22:41 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/29/2007 3:31:13 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 3:50:23 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/29/2007 4:12:41 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/29/2007 6:45:26 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/30/2007 5:47:10 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/30/2007 1:34:06 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/30/2007 2:15:47 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/30/2007 3:52:54 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/30/2007 5:09:35 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 1:37:29 AM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/31/2007 7:05:55 AM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 11:11:01 AM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/31/2007 1:57:16 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 3:41:42 PM
RE: Taking advantage of larger screen resolutions Posted by tushar @ 1/31/2007 3:56:37 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 4:55:03 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/31/2007 5:04:43 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 1/31/2007 8:11:57 PM
RE: Taking advantage of larger screen resolutions Posted by Ken Murphy @ 1/31/2007 8:32:47 PM
RE: Taking advantage of larger screen resolutions Posted by George Kelly @ 2/1/2007 12:23:07 AM