Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anchor for two editboxes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01616840
Message ID:
01616873
Vues:
31
>First, thank you.

No problemo


>
>Here is what I do in my INIT method of the form.
>
>1. Dynamically add container to the form (where the edit boxes reside). The snippet of the code is as follows:
>
>	thisform.pageframe1.page1.AddObject( "fields_container", "fields_container" )
>
>2. Dynamically add a container (not related to the edit boxes) on the top of the form and adjust the height of the form and .top value of all controls.
>3. Set the anchor value of the edit boxes according to your suggestions.
>
>I probably need to set the anchor values before step 2 (before adding another container and re-sizing the form).

I guess fields_container has a default anchor value, then in step #2 when you resize the form you are resizing the container and the proper anchor value of the edit boxes are not yet set, my first try would be to swap steps 2 and 3
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform