At first glance of your question, I would first try to override the components constructor method and check if (Owner is TYourCustomPageControl) and fail or raise an exception if owner type is not set right. However, I think as a general rule constructors should never fail. Perhaps you have to change another method. Or you could try and check out "notification" events. It is a method which gets called with notification with an object gets added or deleted defined in the base TComponent class.
Disclaimer: This is just a best guess from a quick review of your situation.... ----- Original Message ---- From: "Woods, Steven" <[EMAIL PROTECTED]> To: Borland's Delphi Discussion List <[email protected]> Sent: Friday, November 16, 2007 9:48:20 AM Subject: StructureViewAPI Hello All, I'm currently writing (has written now) a custom page control component and everything is working perfectly. However, I have a question regarding the Structure View and StructureViewAPI in Delphi 2007. If you look at a TPageControl with a TTabSheet under the structure view the TTabSheet is draggable, but can only be dropped on another TPageControl. Does anbody know the steps I need to take to ensure my own custom tab pages can only be dragged to my own custom page control. Many Thanks Steve Woods VT Lifeskills -------------------------------------------------------------------------------- This Email and any files transmitted with it are confidential and may be legally privileged. They are intended for use solely of the intended recipient(s). If you have received an Email in error: (a) any distribution, copying or other use of its contents is prohibited; and (b) please notify the sender as soon as possible and delete the email and any associated files and copies from your system. Any views or opinions expressed are solely those of the author and do not necessarily represent the views of VT Group plc or any of its subsidiary or associated companies. If you have any other problems please contact the Administrator by E-mail ([EMAIL PROTECTED]) or the Service Desk by telephone on 0800 028 1371, or for users abroad 44 (0) 23 9288 3888. VT Group plc Company No: 1915771 Registered in England VT House, Grange Drive, Hedge End, Southampton SO30 2DQ -------------------------------------------------------------------------------- _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

