Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox loses its Anchor behavior upon Resize
Message
De
03/02/2012 02:58:39
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Textbox loses its Anchor behavior upon Resize
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01534384
Message ID:
01534384
Vues:
230
Hi Experts,

I have a textbox class which I used as sort of a title holder to be dropped in a form. Its Anchor property is 10 (Resize Width). I put a method named Dock to make sure it is placed at the topmost part of the form. Dock method is called in its Init().

In my Dock method, I placed the Anchor setting to a variable, did the 'docking', then restored the Anchor value of this textbox.

The form's Init though resizes the form's width, which I expect the textbox to follow suit since its Anchor setting is 10. Lo and behold, it does not!

The weird thing is, if I drop this textbox class on a form that does not resize its width, it behaves well.

Thanks in advance for any help on this.

Dennis
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform