>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:
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