Board index » delphi » align corners

align corners


2004-05-01 07:05:15 PM
delphi228
Hi all,
As you know for most compnents there is a property such as Align which you
can specify alignment of the component. Is there any easy way that can
specify alignment for the corners. Something like Align := alTopLeft or
Align := alBottomRight?
 
 

Re:align corners

"Shahram Shafieha" <XXXX@XXXXX.COM>schrieb im Newsbeitrag
Quote
Hi all,
As you know for most compnents there is a property such as Align which you
can specify alignment of the component. Is there any easy way that can
specify alignment for the corners. Something like Align := alTopLeft or
Align := alBottomRight?
Hi,
not to my knowledge.
The simplest solution to this should be:
// "alBottomRight"
with MyControl do begin
Left := 0;
Top := Parent.ClientHeight - Height;
Anchors := [akLeft, akBottom];
end;
Regards,
-- Florian Haag