Mega Code Archive

 
Categories / Delphi / Examples
 

Determine the position of nonvisual components at design time

Q: How do I read the position of nonvisual components on a form at design time? (Comment: such components do not have the .Left, .Top properties) A: See the code below: begin ALeft := LongRec(MyComponent.DesignInfo).Lo; ATop := LongRec(MyComponent.DesignInfo).Hi; end.