Hi Naomi,
beg your pardon for using the wrong name. But possibly you like to change your name again? ::)
I've no time to follow the whole thread, but what I know is: (Maybe I'm wrong)
Sometimes the dimensions are wrong in init. This will happen if the form was never visible, and width, height are altered by code. Try to show the form
Anyway, if a object is anchored and you move it around with code the next action like show will move them back to the position before ANCHOR = Value
Anyway whats wrong with tracing your code and check the values?
Agnes
>Hi Agnes,
>
>I think it's the first time I was called Tracy in my life :)
>
>The problem is, that my code doesn't resize the objects. It supposed to resize them, but it doesn't. That's why I need help.
>
>I think #0 anchor settings should not contribute to the problem, it is also for resizing the form in run-time. In my case I resize the container in design-time, but in the Init of the container I adjust positions/dimensions of the inner objects, so they supposed to be properly resized. Why it doesn't work - I can not figure out myself.
>
>>Tracy,
>>
>>I have no idea what you are doing. All what I see is that some objects have a anchor value#0 and you try to move/resize them.
>>
>>For all what I know:
>>1. store anchor value
>>2. set anchor to 0
>>3. move (instead of single top,left, hight and width, this will fire moved and resize event of the object only once)
>>4. set anchor to stored value
>>
>>I've never done design time resize, I normaly do the calculation at runtime. (A coworker notoriously move the objects if he click on them)
>>
>>BTW,
>>
>>I've answered a specific question in this thread. Please, you do not need to notify me for other branches.
>>
>>Agnes
>>
>>>I hoped it would be easy for people here to spot the problem in what I'm doing.
>>>
>>>Anyone, please?
>>>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]