| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.1.
Part I
   Version Info  
   Definition  
   Inheritance Chart  
   TtpFitForm  
   TtpSplitterForm  
   TutParentForm  
   whMail.pas  
   Creation Order  
*

  

Browsing >>TutParentForm: Key Facts

  • This is where the "tear-out" feature is implemented, where you can click on the border of a panel and it will pop-up into a standalone window. The paStartDrag method pops it out, and calling the form's close event pops it back in.

    You can always assume that pa.parent is a TTabSheet unless the form has been detached.

  • A TPanel named 'pa' is required. Here is the interface :
    type
      TutParentForm = class(TtpSplitterForm)
        pa: TPanel;
        procedure paStartDrag(Sender: TObject; var DragObject: TDragObject);
        procedure FormClose(Sender: TObject; var Action: TCloseAction);
        procedure FormActivate(Sender: TObject);
      private
        { Private declarations }
        fRestorer: TFormRestorer;
        procedure Detach;  { moved to public Nov. 30, 1998 }
      protected
        procedure CreateParams(var Params: TCreateParams); override;
      public
        { Public declarations }
        constructor Create(aOwner:Tcomponent); override;
        procedure Save(Restorer:TFormRestorer); virtual;
        procedure Load(Restorer:TFormRestorer); virtual;
        end;
    

 
Path:  www.href.com to; Services to; Tech Talk Archive to; PanelWare to; Part I to; TutParentForm

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Wed, 23 May 2012 22:36:38.
Session 452429792, 37 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.228;
Time to produce this page: 0msec.