The background is that I've been using the geometry manager in my projects and so far (touch wood) I've not had any problems, even with very complex layouts. However, one of my scripts has to resize a group and a few controls within it.
In simplified code, it looks a bit like this:
Code: Select all
on changeHeight pTheHeight
-- work out some dimensions and points
put the top of group "theGroup" into lTheTop
-- set the dimensions of the group
set the height of group pTheTargetGroup to pTheHeight
set the top of group pTheTargetGroup to lTheTop
-- set the dimensions of other controls
set the height of field "theField" of group "theGroup" to pTheHeight - 20
set the top of field "theField" of group "theGroup" to lTheTop + 20
etc. etc.
revCacheGeometry
end changeHeight
I've discovered that using:
Code: Select all
RevCacheGeometry true
Cheers,
Steve