Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Anchor
Message
De
30/07/2010 08:47:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01474567
Message ID:
01474591
Vues:
59
Naomi --

You will see the effect you describe if you have changed the top/left/height/width of a control that has a non-zero anchor setting.

So, the trick is to set the anchor to zero before making the change, then set it back to its original value afterward.

Jim

>Hi everybody,
>
>I have a form with an editbox control and a grid control under it. Anchor of both set to resize in run-time.
>
>I also have a code in InteractiveEvent of the combobox to either set editbox height to cover to the bottom of the form (and make grid invisible) and or keep both controls visible.
>
>However, when I do so, and resize the form, the editbox gets resized by its original size, not by the new size I set in run-time.
>
>Do you know how to fix it?
>
>Thanks in advance.
>
>Update. I think I solved it.
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform