Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
YAQ on anchor
Message
De
04/03/2008 09:08:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01298263
Message ID:
01298409
Vues:
26
>>It depends on the application. I have one app where the client wants certain forms to "grow" when the user resizes them, that is, controls and their fonts should increase. Anchor is really useful there, along with a class I use to handle font size.
>>
>>Tamar
>
>This sounds very interesting. Since, from what I understand, anchor can only increase the textbox in length, how do you increase the height of the textboxes? And how do you handle automatic font increase? (if you don't mind sharing in general terms).
>

Anchors can change the height of a textbox. I have Anchor set to 240 for most things; that's relative on all sides.

As for the font increase, it's based on a class that I published some time ago. On the way into a form, you save the original height width, and font size of everything on the form (by adding properties to each item to store them). Then, bind the form's resize to a method of the font resize object. That method calculates the ratio of the new size to the old and adjust the font size accordingly. An older version of the code is on my website at http://www.tomorrowssolutionsllc.com/session_materials.htm. Look at the Developing Applications for Everyone article.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform