Ignore:
Timestamp:
Dec 29, 2010, 1:56:04 PM (14 years ago)
Author:
george
Message:
  • Fixed: Hiding invisible docked forms as tabs.
  • Added: Ability to bring window to front on execute Form.Show.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCoolDockStylePopupTabs.pas

    r98 r103  
    77uses
    88  Classes, Controls, SysUtils, ComCtrls, ExtCtrls,
    9   UCoolDockStyleTabs, UCoolDockStyle;
     9  UCoolDockStyleTabs, UCoolDockStyle, UCoolDockClientPanel;
    1010
    1111type
     
    5252    constructor Create(AManager: TObject);
    5353    destructor Destroy; override;
     54  private
    5455  end;
    5556
     
    181182
    182183constructor TCoolDockStylePopupTabs.Create(AManager: TObject);
     184var
     185  I: Integer;
    183186begin
     187  inherited;
     188
    184189  AutoHide := TCoolDockAutoHide.Create;
    185   TabImageList := TImageList.Create(TCoolDockManager(AManager).DockSite);
    186   with TabImageList do begin
    187   end;
    188   TabControl := TTabControl.Create(TCoolDockManager(AManager).DockSite);
    189   with TabControl do begin
    190     Parent := TCoolDockManager(AManager).DockSite;
    191     Visible := False;
    192     Align := alTop;
    193     Height := 24;
    194     OnChange := TabControlChange;
    195     PopupMenu := TCoolDockManager(Manager).PopupMenu;
    196     TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseLeave := TabControlMouseLeave;
    197     TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseDown := TabControlMouseDown;
    198     TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseUp := TabControlMouseUp;
    199     OnMouseUp := TabControlMouseUp;
    200     Images := TabImageList;
    201   end;
    202190end;
    203191
Note: See TracChangeset for help on using the changeset viewer.