Link to home
Start Free TrialLog in
Avatar of sorentop
sorentop

asked on

Move component

I update the left value of another component, when the left value of my groupbox component is changed.
If I move the groupbox component around in the delphi IDE, the left value change fine. But the left value of the other component isn't changed.

If I then focus the left property in the object inspector and hits enter, the left value of the second component is updated.
Is there a way to update the second components value on the fly ? or is this just the way delphi works
Avatar of fva
fva

Why don't you make all other components children of your groupbox? That way Windows will take care of moving (but I admit, the "Left" property of all children will be relative to the parent).

F.
Avatar of sorentop

ASKER

they must be located outside the box
ASKER CERTIFIED SOLUTION
Avatar of fva
fva

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Overriding SetBounds works fine