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:
01616875
Vues:
38
>Hi,
>
>I have two editboxes one below the other. I would like both editboxes to expand vertically, equally. The top edge of the top edit box should not move. But the top editbox should expand down (grow in height). So far I was able to achieve it by setting the top editbox anchor to 65.
>
>The bottom edit box should move vertically down (so that the top edge of the editbox moves with the bottom edge of the top editbox) and at the same time it should expand vertically (grow in height).
>
>I can't seem to find what value assign to the anchor property of the bottom editbox.
>
>Any suggestions? TIA

In Summary this is what I have:
Initially all controls have anchor value of 0 (zero).
The two edit boxes are inside a container.
The container is instantiated into the PageFrame.Page1 dynamically (in INIT method).
Then the Height of the Pageframe and the Form is being changed (increased)
Then the anchor value of the edit boxes is set to 75 and 30 (as suggested by Hugo).
The above does not produce the desired results.

Question: Would the following approach resolve the issue?
1. At design time, set the anchor value of the Pageframe and the Container (where edit boxes reside) to 5. And set the anchor values of the edit boxes at design time (to 75 and 30).
2. Then when the Pageframe is re-sized set the anchor value to 0 and then back to the design value.

TIA
"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