Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 Tags
Subject: RE: Change Screen Resolution
Thread ID: 78983 Message ID: 79261 # Views: 2 # Ratings: 0
Version: Visual FoxPro 6 Category: Operating Systems
Date: Friday, October 14, 2005 2:43:59 PM         
   


> > > ... I also do all the resizing of the contained controls in the FORM.Resize event procedure.
> > >
> > > BTW, I do not use 3rd party resizers because they usually resize the controls isometrically, and that is almost never what I need. But the choice, as always, is yours to make.
> > >
> > > HTH.
> > >
> > > Regards,
> > >
> > > Ilya

> >
> > If you don't use resizers, how do you do it? I assume that you start with your own resizable base classlib. How do you handle resizing fonts?
> >
> > Ken

>
> I ain't resizing fonts, Ken! My forms are "rather well stocked" (as John Clease's character put it about that BMW for 007 in "The Word Is Not Enough"), that is it usually has some main control showing the data (grid, TreeView, image control, etc.) and some other auxilliary stuff (i.e. pushbuttons, lists, etc.) Increasing fonts on these is either not needed (no captions, just pictograms of the actions) or not advisable.
>
> I don't have any Resize class of my own either. I tried that, and there were so many complications! In part because some of the controls are interchangeable during the session (that is occupy the same area on the form and are visible in turns, according to data type and/or user desire). In part because (and this ties up with the abovesaid) some of them do have Font property and some don't, and it is too cumbersome in a generic program to distinguish which is which. And this list may go on - but I don't want to waste your time on that.
>
> I select a baseline/corner (usually, but not necesserily, upper left) and base control (usually, but not necesserily, a toolbar/command group), and calculate the positions and dimensions of this control first, and then all the rest of the controls relative to these former ones. Here's the sample of such FORM.Resize event procedure:
>
WITH THISFORM
>    .sbrHoris.Left = 5
>    .imgLead.Left = 5
>    .sbrVert.Left = .Width - .sbrVert.Width - 5 - 1
>    .imgLead.Width = .sbrVert.Left - 5
>    .sbrHoris.Width = .imgLead.Width
>    .imgLead.Top = .cmdBar.Top + .cmdBar.Height + 5
>    .sbrVert.Top = .imgLead.Top
>    .imgLead.Height = .Height - .imgLead.Top - .sbrHoris.Height - 5
>    .sbrHoris.Top = .imgLead.Top + .imgLead.Height - 1
>    .sbrVert.Height = .imgLead.Height
>    
>    .imgPDF.Top = .imgLead.Top
>    .imgPDF.Left = .imgLead.Left
>    .imgPDF.Width = .imgLead.Width
> && To hide PDF.OCX's page navigation controls
>    .imgPDF.Height = .Height - .cmdBar.Height - 10
>    .txtRTF.Top = .imgLead.Top
>    .txtRTF.Height = .imgLead.Height
>    .txtRTF.Left = 5
>    .txtRTF.Width = .Width - 10
>    .imgLeadThumbList.Top = .imgLead.Top
>    .imgLeadThumbList.Height = .imgLead.Height
>    .imgLeadThumbList.Left = 5
>    .imgLeadThumbList.Width = .Width - 10
>    .SetScrollBars
> ENDWITH
> RETURN

> Very typical case, BTW: toolbar (cmdBar), and three displaying controls for three data types: image (imgLead), text (txtRTF) and PDF (imgPDF, which used to be PDF.OCX until Adobe has done away with it in Acrobat/Reader 7). Toolbar (standard command group, BTW) is always at 5,5 and isn't changeable, all the rest "dances out" from cmdBar's position and dimensions.
>
> Regards,
>
> Ilya


Thanks, I got your img, horis, etc. but what does 'sbr' signify? Starboard? :)

Ken

ENTIRE THREAD

Change Screen Resolution Posted by Bozhidar Bozhanov @ 10/11/2005 8:50:06 PM
RE: Change Screen Resolution Posted by Ken Murphy @ 10/11/2005 9:13:28 PM
RE: Change Screen Resolution Posted by Andy Kramek @ 10/11/2005 10:28:58 PM
RE: Change Screen Resolution Posted by Ilya Rabyy @ 10/11/2005 10:59:31 PM
RE: Change Screen Resolution Posted by Ken Murphy @ 10/12/2005 2:02:27 PM
RE: Change Screen Resolution Posted by Ilya Rabyy @ 10/14/2005 12:05:01 AM
RE: Change Screen Resolution Posted by Ken Murphy @ 10/14/2005 2:43:59 PM
RE: Change Screen Resolution Posted by Ilya Rabyy @ 10/14/2005 6:27:44 PM
RE: Change Screen Resolution Posted by Ken Murphy @ 10/14/2005 7:14:07 PM