Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
YAQ on anchor
Message
 
 
À
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:
01298420
Vues:
44
>>>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

Thank you very much for the explanation and for the link.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform