Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Adjustment of Size of Forms, Grids, etc as Per Mon
Message
 
À
26/12/2013 15:05:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01591002
Message ID:
01591006
Vues:
63
>Up till now I was using 15 Inch CRT Monitor, Now I have switched to 24'' LED. I see my Size of forms grid , buttons are not auto fit as per the new Monitor.
>
>Since Every User has different type of console, is there any command or property which could auto adjust the size of Forms, Grids, buttons and FONTS also.
>
>Regards

Yes, Anchor property will help in resizing screens and the objects on it but there is a lot more than that. Depending on how many screens you have and what font you created the screens with you could be in for a lot of work. Especially look out for any grids you might have. They took the most time. You can get the size of the screen the by using SysMetric(). (see the help file) SysMetric(1) = screen width, 2 = height. We have about 300 screens in our management system, many with grids.

It took us almost 2 years but it saved us from extinction and our customers love it. Our customers are now running on monitors from 15 to 42 inch. I strongly suggest you use Arial font as it will resize really well. You can use font size of 12.3 for example. Of course you need to write a function to resize the font as the screen resizes. Make sure you resize proportionally otherwise things like text boxes get really ugly. Base the font size on the text box height, not the width.

As an interim fix tell your customers to reduce the screen resolution. That will make your screens larger.

I'm not trying to discourage you, just trying to prepare you for what is ahead.
Good Luck
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform