>>>>Now, I set my left listbox anchor to 135, right to 45, buttons to 768 (as Tamar said) in my cntMover class. I placed several instances of this class into another container class and I add it programmatically to the page of the pageframe. My listboxes and buttons seem to not change sizes or positions at all. What should I do to make anchor work?
>>>
>>>Anchoring of controls is relative to the container they belongs to (Container, Page or Form). IOW, you have to setup Anchor property of contaner(s) accordingly.
>>
>>I don't understand what should I do with the container's Anchor. If I set inner objects anchor properties, does it mean that my inner objects would be resized properly?
>>
>>In other words, I have a simple container class with two listboxes, label and 4 buttons. I set listboxes and buttons anchor properties. I placed this container object on the page and changed its size. Why I do not see any changes in my listboxes and buttons?
>
>The size of the container doesn't change if its Anchor property isn't set to do that. Set container Anchor = 15 and see what happens.
Nothing happens :( I set Anchor = 15 to cntMover, cntFilterOptions (parent of cntMover), pageframe - and still nothing happens. My listboxes and buttons do not change size or position.
What I'm not doing right?
Thanks in advance.
If it's not broken, fix it until it is.
My Blog