Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in Resize when Control class is involved?
Message
From
11/04/2005 18:32:28
 
 
To
11/04/2005 18:23:36
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003536
Message ID:
01003539
Views:
23
>Hi, everyone.
>
>I have a control class. It contains a combo which has 10 in Anchor property (left absolute and right absolute). The control is set to resize with the form. However, the contained combo does not resize. I duplicated the situation with a Container class - it works as expected. The contained combo increases/decreases it's width.
>
>However, this not happens when the combo is contained in a Control.
>
>Can anyone reproduce this?

I confirm for any control's member.

>Is this a bug?

Of course !

>Is there any workaround besides writing custom resizing code?

Simple but annoying a lot:
* on Control class Move()
LPARAMETERS nLeft, nTop, nWidth, nHeight
this.combo.Width=this.combo.Width+ m.nWidth-m.this.Width
Another way:
use a Container with all members declared protected
Previous
Reply
Map
View

Click here to load this message in the networking platform