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: Marcia Akins
  Where is Marcia Akins?
 Akorn
 Ohio - United States
 Marcia Akins
 Tags
Subject: RE: maximizing my applications main screen
Thread ID: 110937 Message ID: 115378 # Views: 4 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, December 07, 2006 10:52:23 AM         
   


> I had to make one change. Please correct me if I'm wrong:
> Ive remmed out a line which cause me a problem and inserted what I think is a correction in the ResizeControls() method:
>
 
> IF PEMSTATUS( toControl, 'Left', 5 )
>   *toControl.LEFT = toControl.LEFT * THISFORM.HeightRatio
>   toControl.LEFT = toControl.LEFT * THISFORM.widthRatio
> ENDIF
> 

>
> Whoops! Typo - good catch
>
> Does the same code apply in VFP9?
>
> Still works in 9.
>
>
> Regards,
> Marcia G. Akins
> Tightline Computers, Inc.


RE: Still works in 9.
That is really good news, Marcia. Your code is fantastic, and thank you once again.
Ive managed to develop a few other wonderful things as a result of you introducing me to the PEMSTATUS function in this code - it was another starter for 10!

Back to resizing, Ive made another little tweak in my applications, which may be of interest to others.
Ive declared a public variable m.addtofont in my Menu SETUP code.
I hold the value in my Preferences table.
The user can edit the value of m.addtofont in the Preferences program (a module in my apps)
Instead of multiplying the fontsize by a widthratio, I then add the m.addtofont value to the fontsize, like this.

IF PEMSTATUS( toControl, 'Fontsize', 5 )
toControl.FONTSIZE = toControl.FONTSIZE+ m.addtofont
*Original Code: toControl.FONTSIZE = INT( toControl.FONTSIZE * m.WidthRatio )
ENDIF

m.addtofont can be 0, 1, 2 etc.
There are 2 spin-offs:
1) Ive done this because I want to take advantage of the increased number of lines displayed in List box controls when the small (original) font size is maintained.
(I populate my List Boxes with arrays)
People with good eyesight can work with this m.addtofont= 0 quite easily.

2) My software is used by gardeners, many retired, and some with Visual impediments.
They can set the m.addtofont to a higher value.

George

ENTIRE THREAD

maximizing my applications main screen Posted by Jahangir Khan @ 10/24/2006 10:41:17 AM
RE: maximizing my applications main screen Posted by Kiran Kumar Singh @ 10/24/2006 10:57:45 AM
RE: maximizing my applications main screen Posted by Saeed Afshari @ 10/24/2006 10:58:31 AM
RE: maximizing my applications main screen Posted by Borislav Borissov @ 10/24/2006 10:58:32 AM
RE: maximizing my applications main screen Posted by Dave Crozier @ 10/24/2006 10:59:29 AM
RE: maximizing my applications main screen Posted by Marcia Akins @ 10/24/2006 12:19:34 PM
RE: maximizing my applications main screen Posted by George Kelly @ 11/15/2006 10:53:09 AM
RE: maximizing my applications main screen Posted by Marcia Akins @ 12/6/2006 11:55:15 PM
RE: maximizing my applications main screen Posted by George Kelly @ 12/7/2006 10:52:23 AM
RE: maximizing my applications main screen Posted by Marcia Akins @ 12/7/2006 12:40:34 PM
RE: maximizing my applications main screen Posted by George Kelly @ 12/7/2006 1:08:03 PM
RE: maximizing my applications main screen Posted by Ken Murphy @ 12/7/2006 1:44:55 PM
RE: maximizing my applications main screen Posted by tushar @ 12/7/2006 3:26:59 PM
RE: maximizing my applications main screen Posted by Ken Murphy @ 12/7/2006 3:31:52 PM
RE: maximizing my applications main screen Posted by George Kelly @ 12/7/2006 4:51:26 PM
RE: maximizing my applications main screen Posted by Ken Murphy @ 12/7/2006 6:07:40 PM
RE: maximizing my applications main screen Posted by George Kelly @ 12/7/2006 9:23:25 PM
RE: maximizing my applications main screen Posted by Don Higgins @ 12/7/2006 11:20:46 PM
RE: maximizing my applications main screen Posted by George Kelly @ 12/8/2006 11:21:35 AM
RE: maximizing my applications main screen Posted by Ken Murphy @ 12/7/2006 3:29:56 PM
RE: maximizing my applications main screen Posted by Don Higgins @ 12/7/2006 11:22:33 PM
RE: maximizing my applications main screen Posted by George Kelly @ 12/6/2006 1:14:45 PM
RE: maximizing my applications main screen Posted by Barbara Peisch @ 10/24/2006 10:16:51 PM
RE: maximizing my applications main screen Posted by Mike Gagnon @ 10/25/2006 11:43:05 AM