Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox loses its Anchor behavior upon Resize
Message
From
03/02/2012 02:58:39
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Textbox loses its Anchor behavior upon Resize
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01534384
Message ID:
01534384
Views:
231
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
Next
Reply
Map
View

Click here to load this message in the networking platform