>Exactly. And your example works in a small .prg file. Thank you.
>
>But when I set the value of my edit boxes to the same values as you have, it does not work. The issue must be that my edit boxes are in a container which is inside a page of a pageframe. And I set the anchor values in the INIT method of the form. Could it be that the anchor value of the PageFrame or the container is causing the problem?
Are you changing width/height or the edit boxes before changing the anchor? This might be a problem, if you are doing something like that, first you need to set the anchor to zero, then adjust width/height and then set the anchor to whatever value you need.
I do not think that having the edit boxes in containers should make a difference:
loForm = CREATEOBJECT('myForm')
loForm.Show(1)
DEFINE CLASS myForm as Form
height = 450
ADD OBJECT myContainer as myContainer WITH top =0, left = 0, width = 220, height = 420, anchor = 15
ENDDEFINE
DEFINE CLASS myContainer as Container
ADD OBJECT myTopEditBox as EditBox WITH top = 5, width = 200, height = 200, left = 5, anchor = 75
ADD OBJECT myBotEditBox as EditBox WITH top = 210, width = 200, height = 200, left = 5, anchor = 30
enddefine
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges