cancel
Showing results for 
Search instead for 
Did you mean: 

To center a control relative to another (Parent or any other)

 

I am thinking that instead of app makers typing long formula to center controlA relative to controlB, lets have short functions.

 

Instead ofLets have a function like..
ControlB.Width*0.5-Self.Width*0.5Parent.CenterX or ControlB.CenterX
ControlB.Height*0.5-Self.Height*0.5Parent.CenterY or ControlB.CenterY
  

 

Status: New