Cliff" wrote 7 lines
I don't think you should implement this 'into' the component. It is the editor that should handle and draw those anchors. Otherwhise a component could mess -up the editor. (by a custom-component that overwrites some anchor-handling functionality for instance) And what about non-visual components ?
Show quoted text 12 lines
I don't know the component hierarchy, but aren't all containers derived from the same base class. Maybe you could check then the type of the component like 'if component is TBaseContainer then ' (I hope the 'is' is implemented in FPC)
Show quoted text 7 lines
What about TPanel ? It has an published onResize, and it has anchors.
Pascal
_____________________________________________________________ Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
