- Timestamp:
- Mar 11, 2011, 2:16:50 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r194 r195 43 43 </Item3> 44 44 </RequiredPackages> 45 <Units Count="6 6">45 <Units Count="67"> 46 46 <Unit0> 47 47 <Filename Value="IDE.lpr"/> … … 51 51 <TopLine Value="1"/> 52 52 <CursorPos X="1" Y="1"/> 53 <UsageCount Value="13 4"/>53 <UsageCount Value="136"/> 54 54 </Unit0> 55 55 <Unit1> … … 62 62 <TopLine Value="1"/> 63 63 <CursorPos X="18" Y="3"/> 64 <UsageCount Value="13 4"/>64 <UsageCount Value="136"/> 65 65 </Unit1> 66 66 <Unit2> … … 73 73 <TopLine Value="1"/> 74 74 <CursorPos X="31" Y="17"/> 75 <UsageCount Value="13 4"/>75 <UsageCount Value="136"/> 76 76 </Unit2> 77 77 <Unit3> … … 84 84 <TopLine Value="4"/> 85 85 <CursorPos X="37" Y="17"/> 86 <UsageCount Value="13 4"/>86 <UsageCount Value="136"/> 87 87 </Unit3> 88 88 <Unit4> … … 95 95 <TopLine Value="4"/> 96 96 <CursorPos X="37" Y="17"/> 97 <UsageCount Value="13 4"/>97 <UsageCount Value="136"/> 98 98 </Unit4> 99 99 <Unit5> 100 100 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 101 101 <WindowIndex Value="0"/> 102 <TopLine Value=" 3176"/>103 <CursorPos X=" 46" Y="3187"/>102 <TopLine Value="1070"/> 103 <CursorPos X="1" Y="1083"/> 104 104 <UsageCount Value="61"/> 105 105 </Unit5> … … 113 113 <TopLine Value="4"/> 114 114 <CursorPos X="24" Y="17"/> 115 <UsageCount Value="13 4"/>115 <UsageCount Value="136"/> 116 116 </Unit6> 117 117 <Unit7> … … 131 131 <TopLine Value="4"/> 132 132 <CursorPos X="25" Y="17"/> 133 <UsageCount Value="13 4"/>133 <UsageCount Value="136"/> 134 134 </Unit8> 135 135 <Unit9> … … 142 142 <TopLine Value="3"/> 143 143 <CursorPos X="37" Y="16"/> 144 <UsageCount Value="13 4"/>144 <UsageCount Value="136"/> 145 145 </Unit9> 146 146 <Unit10> … … 153 153 <TopLine Value="5"/> 154 154 <CursorPos X="37" Y="18"/> 155 <UsageCount Value="13 4"/>155 <UsageCount Value="136"/> 156 156 </Unit10> 157 157 <Unit11> … … 164 164 <TopLine Value="4"/> 165 165 <CursorPos X="26" Y="17"/> 166 <UsageCount Value="13 4"/>166 <UsageCount Value="136"/> 167 167 </Unit11> 168 168 <Unit12> … … 175 175 <TopLine Value="5"/> 176 176 <CursorPos X="37" Y="18"/> 177 <UsageCount Value="13 4"/>177 <UsageCount Value="136"/> 178 178 </Unit12> 179 179 <Unit13> … … 186 186 <TopLine Value="4"/> 187 187 <CursorPos X="37" Y="17"/> 188 <UsageCount Value="13 4"/>188 <UsageCount Value="136"/> 189 189 </Unit13> 190 190 <Unit14> … … 197 197 <TopLine Value="6"/> 198 198 <CursorPos X="75" Y="7"/> 199 <UsageCount Value="13 2"/>199 <UsageCount Value="134"/> 200 200 </Unit14> 201 201 <Unit15> … … 206 206 <TopLine Value="1"/> 207 207 <CursorPos X="14" Y="13"/> 208 <UsageCount Value="6 6"/>208 <UsageCount Value="68"/> 209 209 <Loaded Value="True"/> 210 210 </Unit15> … … 219 219 <Unit17> 220 220 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 221 <EditorIndex Value="9"/>222 221 <WindowIndex Value="0"/> 223 222 <TopLine Value="1524"/> 224 223 <CursorPos X="5" Y="1537"/> 225 <UsageCount Value="36"/> 226 <Loaded Value="True"/> 224 <UsageCount Value="37"/> 227 225 </Unit17> 228 226 <Unit18> … … 282 280 <TopLine Value="835"/> 283 281 <CursorPos X="3" Y="837"/> 284 <UsageCount Value=" 0"/>282 <UsageCount Value="10"/> 285 283 </Unit24> 286 284 <Unit25> … … 315 313 <Unit29> 316 314 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 317 <WindowIndex Value="0"/> 318 <TopLine Value="5393"/> 319 <CursorPos X="35" Y="5402"/> 315 <EditorIndex Value="9"/> 316 <WindowIndex Value="0"/> 317 <TopLine Value="6253"/> 318 <CursorPos X="1" Y="6270"/> 320 319 <UsageCount Value="29"/> 320 <Loaded Value="True"/> 321 321 </Unit29> 322 322 <Unit30> … … 333 333 <ResourceBaseClass Value="Form"/> 334 334 <UnitName Value="UCDCustomize"/> 335 <IsVisibleTab Value="True"/>336 335 <EditorIndex Value="5"/> 337 336 <WindowIndex Value="0"/> 338 <TopLine Value="1"/> 339 <CursorPos X="61" Y="9"/> 340 <UsageCount Value="50"/> 341 <Loaded Value="True"/> 337 <TopLine Value="22"/> 338 <CursorPos X="36" Y="36"/> 339 <UsageCount Value="52"/> 340 <Loaded Value="True"/> 341 <LoadedDesigner Value="True"/> 342 342 </Unit31> 343 343 <Unit32> … … 356 356 <TopLine Value="255"/> 357 357 <CursorPos X="27" Y="268"/> 358 <UsageCount Value="5 1"/>358 <UsageCount Value="53"/> 359 359 <Loaded Value="True"/> 360 360 </Unit33> … … 430 430 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 431 431 <UnitName Value="UCDManagerTabs"/> 432 <EditorIndex Value=" 11"/>433 <WindowIndex Value="0"/> 434 <TopLine Value=" 6"/>435 <CursorPos X=" 3" Y="19"/>436 <UsageCount Value=" 39"/>432 <EditorIndex Value="8"/> 433 <WindowIndex Value="0"/> 434 <TopLine Value="31"/> 435 <CursorPos X="15" Y="44"/> 436 <UsageCount Value="41"/> 437 437 <Loaded Value="True"/> 438 438 </Unit43> … … 463 463 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 464 464 <UnitName Value="UCDManagerRegions"/> 465 <EditorIndex Value="7"/> 466 <WindowIndex Value="0"/> 467 <TopLine Value="259"/> 468 <CursorPos X="12" Y="272"/> 469 <UsageCount Value="38"/> 465 <IsVisibleTab Value="True"/> 466 <EditorIndex Value="6"/> 467 <WindowIndex Value="0"/> 468 <TopLine Value="96"/> 469 <CursorPos X="44" Y="112"/> 470 <UsageCount Value="40"/> 470 471 <Loaded Value="True"/> 471 472 </Unit47> … … 477 478 <TopLine Value="190"/> 478 479 <CursorPos X="3" Y="202"/> 479 <UsageCount Value=" 29"/>480 <UsageCount Value="31"/> 480 481 <Loaded Value="True"/> 481 482 </Unit48> … … 526 527 <TopLine Value="23"/> 527 528 <CursorPos X="15" Y="24"/> 528 <UsageCount Value="3 5"/>529 <UsageCount Value="37"/> 529 530 </Unit54> 530 531 <Unit55> 531 532 <Filename Value="..\..\Managers\UCDManagerRegionsPopup.pas"/> 532 533 <UnitName Value="UCDManagerRegionsPopup"/> 533 <EditorIndex Value="6"/>534 534 <WindowIndex Value="0"/> 535 535 <TopLine Value="14"/> 536 536 <CursorPos X="25" Y="27"/> 537 537 <UsageCount Value="13"/> 538 <Loaded Value="True"/>539 538 </Unit55> 540 539 <Unit56> … … 549 548 <Filename Value="..\..\UCDManager.pas"/> 550 549 <UnitName Value="UCDManager"/> 551 <EditorIndex Value=" 8"/>552 <WindowIndex Value="0"/> 553 <TopLine Value=" 567"/>554 <CursorPos X=" 14" Y="586"/>555 <UsageCount Value="1 4"/>550 <EditorIndex Value="7"/> 551 <WindowIndex Value="0"/> 552 <TopLine Value="49"/> 553 <CursorPos X="23" Y="64"/> 554 <UsageCount Value="16"/> 556 555 <Loaded Value="True"/> 557 556 </Unit57> … … 563 562 <TopLine Value="1"/> 564 563 <CursorPos X="31" Y="8"/> 565 <UsageCount Value="1 3"/>564 <UsageCount Value="15"/> 566 565 <Loaded Value="True"/> 567 566 </Unit58> … … 569 568 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 570 569 <UnitName Value="ExtCtrls"/> 571 <WindowIndex Value="0"/> 572 <TopLine Value="1129"/> 573 <CursorPos X="3" Y="1142"/> 574 <UsageCount Value="9"/> 570 <EditorIndex Value="10"/> 571 <WindowIndex Value="0"/> 572 <TopLine Value="122"/> 573 <CursorPos X="14" Y="225"/> 574 <UsageCount Value="10"/> 575 <Loaded Value="True"/> 575 576 </Unit59> 576 577 <Unit60> … … 581 582 <TopLine Value="2"/> 582 583 <CursorPos X="38" Y="8"/> 583 <UsageCount Value="1 1"/>584 <UsageCount Value="13"/> 584 585 <Loaded Value="True"/> 585 586 </Unit60> … … 595 596 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\comctrls.pp"/> 596 597 <UnitName Value="ComCtrls"/> 597 <WindowIndex Value="0"/> 598 <TopLine Value="296"/> 599 <CursorPos X="14" Y="309"/> 598 <EditorIndex Value="11"/> 599 <WindowIndex Value="0"/> 600 <TopLine Value="286"/> 601 <CursorPos X="43" Y="299"/> 600 602 <UsageCount Value="11"/> 603 <Loaded Value="True"/> 601 604 </Unit62> 602 605 <Unit63> … … 617 620 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lcltype.pp"/> 618 621 <UnitName Value="LCLType"/> 619 <EditorIndex Value="10"/>620 622 <WindowIndex Value="0"/> 621 623 <TopLine Value="114"/> 622 624 <CursorPos X="3" Y="127"/> 623 <UsageCount Value="11"/> 624 <Loaded Value="True"/> 625 <UsageCount Value="12"/> 625 626 </Unit65> 627 <Unit66> 628 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\menu.inc"/> 629 <WindowIndex Value="0"/> 630 <TopLine Value="115"/> 631 <CursorPos X="1" Y="128"/> 632 <UsageCount Value="10"/> 633 </Unit66> 626 634 </Units> 627 635 <JumpHistory Count="30" HistoryIndex="29"> 628 636 <Position1> 629 <Filename Value="..\..\Managers\UCDManagerTabs Popup.pas"/>630 <Caret Line="1 1" Column="5" TopLine="1"/>637 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 638 <Caret Line="183" Column="1" TopLine="170"/> 631 639 </Position1> 632 640 <Position2> 633 <Filename Value="..\..\ UCDManager.pas"/>634 <Caret Line=" 34" Column="3" TopLine="27"/>641 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 642 <Caret Line="220" Column="1" TopLine="207"/> 635 643 </Position2> 636 644 <Position3> 637 <Filename Value="..\..\ UCDManager.pas"/>638 <Caret Line="1 29" Column="5" TopLine="116"/>645 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 646 <Caret Line="184" Column="1" TopLine="171"/> 639 647 </Position3> 640 648 <Position4> 641 <Filename Value="..\..\ UCDManager.pas"/>642 <Caret Line=" 46" Column="15" TopLine="33"/>649 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 650 <Caret Line="185" Column="1" TopLine="171"/> 643 651 </Position4> 644 652 <Position5> 645 <Filename Value="..\..\ UCDManager.pas"/>646 <Caret Line="1 39" Column="9" TopLine="116"/>653 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 654 <Caret Line="186" Column="1" TopLine="201"/> 647 655 </Position5> 648 656 <Position6> 649 <Filename Value="..\..\ UCDManager.pas"/>650 <Caret Line=" 144" Column="5" TopLine="131"/>657 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 658 <Caret Line="216" Column="1" TopLine="201"/> 651 659 </Position6> 652 660 <Position7> 653 <Filename Value="..\..\ UCDManager.pas"/>654 <Caret Line=" 147" Column="5" TopLine="134"/>661 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 662 <Caret Line="217" Column="1" TopLine="201"/> 655 663 </Position7> 656 664 <Position8> 657 <Filename Value=" ..\..\UCDManager.pas"/>658 <Caret Line=" 149" Column="5" TopLine="135"/>665 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 666 <Caret Line="6270" Column="1" TopLine="6253"/> 659 667 </Position8> 660 668 <Position9> 661 <Filename Value=" ..\..\UCDManager.pas"/>662 <Caret Line=" 153" Column="33" TopLine="140"/>669 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 670 <Caret Line="6267" Column="1" TopLine="6253"/> 663 671 </Position9> 664 672 <Position10> 665 <Filename Value=" ..\..\UCDManager.pas"/>666 <Caret Line=" 155" Column="18" TopLine="142"/>673 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 674 <Caret Line="6270" Column="1" TopLine="6253"/> 667 675 </Position10> 668 676 <Position11> 669 <Filename Value="..\..\ UCDManager.pas"/>670 <Caret Line=" 13" Column="20" TopLine="1"/>677 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 678 <Caret Line="409" Column="1" TopLine="384"/> 671 679 </Position11> 672 680 <Position12> 673 <Filename Value="..\..\ UCDManager.pas"/>674 <Caret Line=" 157" Column="10" TopLine="149"/>681 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 682 <Caret Line="250" Column="1" TopLine="237"/> 675 683 </Position12> 676 684 <Position13> 677 <Filename Value="..\..\ UCDManager.pas"/>678 <Caret Line=" 162" Column="16" TopLine="149"/>685 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 686 <Caret Line="253" Column="1" TopLine="237"/> 679 687 </Position13> 680 688 <Position14> 681 <Filename Value="..\..\ UCDManager.pas"/>682 <Caret Line=" 175" Column="9" TopLine="158"/>689 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 690 <Caret Line="259" Column="1" TopLine="238"/> 683 691 </Position14> 684 692 <Position15> 685 <Filename Value="..\..\ UCDManager.pas"/>686 <Caret Line=" 183" Column="5" TopLine="170"/>693 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 694 <Caret Line="260" Column="1" TopLine="239"/> 687 695 </Position15> 688 696 <Position16> 689 <Filename Value="..\..\ UCDManager.pas"/>690 <Caret Line=" 187" Column="7" TopLine="174"/>697 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 698 <Caret Line="262" Column="1" TopLine="241"/> 691 699 </Position16> 692 700 <Position17> 693 <Filename Value="..\..\ UCDManager.pas"/>694 <Caret Line=" 188" Column="7" TopLine="174"/>701 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 702 <Caret Line="263" Column="1" TopLine="248"/> 695 703 </Position17> 696 704 <Position18> 697 <Filename Value="..\..\ UCDManager.pas"/>698 <Caret Line="2 16" Column="17" TopLine="203"/>705 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 706 <Caret Line="265" Column="1" TopLine="248"/> 699 707 </Position18> 700 708 <Position19> 701 <Filename Value="..\..\ UCDManager.pas"/>702 <Caret Line="2 17" Column="21" TopLine="204"/>709 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 710 <Caret Line="266" Column="1" TopLine="248"/> 703 711 </Position19> 704 712 <Position20> 705 <Filename Value="..\..\ UCDManager.pas"/>706 <Caret Line="2 32" Column="8" TopLine="208"/>713 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 714 <Caret Line="268" Column="1" TopLine="248"/> 707 715 </Position20> 708 716 <Position21> 709 <Filename Value="..\..\ UCDManager.pas"/>710 <Caret Line=" 317" Column="31" TopLine="304"/>717 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 718 <Caret Line="272" Column="1" TopLine="254"/> 711 719 </Position21> 712 720 <Position22> 713 <Filename Value="..\..\ UCDManager.pas"/>714 <Caret Line=" 339" Column="61" TopLine="326"/>721 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 722 <Caret Line="273" Column="1" TopLine="254"/> 715 723 </Position22> 716 724 <Position23> 717 <Filename Value="..\..\ UCDManager.pas"/>718 <Caret Line=" 391" Column="3" TopLine="388"/>725 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 726 <Caret Line="274" Column="1" TopLine="254"/> 719 727 </Position23> 720 728 <Position24> 721 <Filename Value="..\..\ UCDPopupMenu.pas"/>722 <Caret Line=" 8" Column="55" TopLine="1"/>729 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 730 <Caret Line="275" Column="1" TopLine="254"/> 723 731 </Position24> 724 732 <Position25> 725 <Filename Value="..\..\ UCDPopupMenu.pas"/>726 <Caret Line=" 171" Column="22" TopLine="158"/>733 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 734 <Caret Line="276" Column="1" TopLine="255"/> 727 735 </Position25> 728 736 <Position26> 729 <Filename Value="..\..\ UCDPopupMenu.pas"/>730 <Caret Line=" 190" Column="25" TopLine="177"/>737 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 738 <Caret Line="277" Column="1" TopLine="256"/> 731 739 </Position26> 732 740 <Position27> 733 <Filename Value="..\..\ UCDPopupMenu.pas"/>734 <Caret Line=" 192" Column="18" TopLine="179"/>741 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 742 <Caret Line="278" Column="1" TopLine="257"/> 735 743 </Position27> 736 744 <Position28> 737 <Filename Value="..\..\ UCDMaster.pas"/>738 <Caret Line=" 8" Column="31" TopLine="1"/>745 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 746 <Caret Line="167" Column="24" TopLine="156"/> 739 747 </Position28> 740 748 <Position29> 741 <Filename Value="..\..\ UCDCustomize.pas"/>742 <Caret Line="1 5" Column="36" TopLine="2"/>749 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 750 <Caret Line="160" Column="24" TopLine="147"/> 743 751 </Position29> 744 752 <Position30> 745 <Filename Value="..\..\ UCDCustomize.pas"/>746 <Caret Line=" 66" Column="23" TopLine="53"/>753 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 754 <Caret Line="112" Column="14" TopLine="101"/> 747 755 </Position30> 748 756 </JumpHistory> … … 770 778 </CompilerOptions> 771 779 <Debugging> 772 <BreakPoints Count=" 1">780 <BreakPoints Count="2"> 773 781 <Item1> 774 <Source Value="..\..\ UCDManager.pas"/>775 <Line Value=" 454"/>782 <Source Value="..\..\Managers\UCDManagerRegions.pas"/> 783 <Line Value="163"/> 776 784 </Item1> 785 <Item2> 786 <Source Value="..\..\Managers\UCDManagerTabs.pas"/> 787 <Line Value="216"/> 788 </Item2> 777 789 </BreakPoints> 778 790 <Watches Count="1"> -
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r194 r195 15 15 16 16 TCDManagerRegionsItem = class(TCDManagerItem) 17 Panel : TPanel;17 PanelHeader: TCDPanelHeader; 18 18 Splitter: TSplitter; 19 ClientAreaPanel: TPanel;20 19 constructor Create; 20 destructor Destroy; override; 21 21 end; 22 22 … … 31 31 //Panels: TObjectList; // TObjectList<TCDStyleRegionsPanel> 32 32 function FindControlInPanels(Control: TControl): TCDManagerItem; override; 33 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); 33 34 procedure InsertControlPanel(Control: TControl; InsertAt: TAlign; 34 35 DropCtl: TControl); override; … … 54 55 constructor TCDManagerRegionsItem.Create; 55 56 begin 56 Panel := TPanel.Create(nil); 57 58 ClientAreaPanel := TPanel.Create(Panel); 59 with ClientAreaPanel do begin 60 Parent := Panel; 61 Visible := True; 62 DockSite := True; 63 UseDockManager := True; 64 Align := alClient; 65 BevelInner := bvNone; 66 BevelOuter := bvNone; 67 //Color := clGreen; 68 end; 69 Splitter := TSplitter.Create(Panel); 57 PanelHeader := TCDPanelHeader.Create(nil); 58 PanelHeader.Header.ManagerItem := Self; 59 60 Splitter := TSplitter.Create(nil); 70 61 with Splitter do begin 71 Parent := Panel;62 //Parent := Panel; 72 63 //Color := clRed; 73 64 end; 65 end; 66 67 destructor TCDManagerRegionsItem.Destroy; 68 begin 69 inherited Destroy; 74 70 end; 75 71 … … 100 96 end; 101 97 98 procedure TCDManagerRegions.InsertControlNoUpdate(Control: TControl; 99 InsertAt: TAlign); 100 var 101 NewItem: TCDManagerRegionsItem; 102 begin 103 NewItem := TCDManagerRegionsItem.Create; 104 with NewItem do begin 105 PanelHeader.Parent := Self.DockSite; 106 Manager := Self; 107 if DockStyle = dsList then Visible := True; 108 PanelHeader.Header.PopupMenu := Self.PopupMenu; 109 end; 110 if (Control is TForm) and Assigned((Control as TForm).Icon) then 111 NewItem.PanelHeader.Header.Icon.Picture.Assign((Control as TForm).Icon); 112 NewItem.PanelHeader.Parent := DockSite; 113 114 NewItem.Control := Control; 115 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 116 Control.Parent := NewItem.PanelHeader.ControlPanel; 117 Control.Align := alClient; 118 if (InsertAt = alTop) or (InsertAt = alLeft) then 119 DockItems.Insert(0, NewItem) 120 else DockItems.Add(NewItem); 121 end; 122 102 123 procedure TCDManagerRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign; 103 124 DropCtl: TControl); 104 125 var 105 New Panel: TCDManagerRegionsItem;126 NewItem: TCDManagerRegionsItem; 106 127 I: Integer; 107 128 NewDirection: TCDDirection; … … 131 152 end; 132 153 end; 133 134 NewPanel := TCDManagerRegionsItem.Create; 135 with NewPanel do begin 136 Panel.Parent := Self.DockSite; 137 Manager := Self; 138 if DockStyle = dsList then Visible := True; 139 Header.PopupMenu := Self.PopupMenu; 140 //PopupMenu.Parent := Self.DockSite; 141 end; 142 if (Control is TForm) and Assigned((Control as TForm).Icon) then 143 NewPanel.Header.Icon.Picture.Assign((Control as TForm).Icon); 144 145 NewPanel.Control := Control; 146 Control.AddHandlerOnVisibleChanged(NewPanel.VisibleChange); 147 Control.Parent := NewPanel.ClientAreaPanel; 148 Control.Align := alClient; 149 if (InsertAt = alTop) or (InsertAt = alLeft) then 150 DockItems.Insert(0, NewPanel) 151 else DockItems.Add(NewPanel); 154 InsertControlNoUpdate(Control, InsertAt); 152 155 end; 153 156 UpdateClientSize; … … 156 159 procedure TCDManagerRegions.RemoveControl(Control: TControl); 157 160 var 158 ClientPanel: TCDManagerItem;161 ManagerItem: TCDManagerItem; 159 162 ClientCount: Integer; 160 163 begin 161 ClientPanel := FindControlInPanels(Control); 162 Control.RemoveHandlerOnVisibleChanged(ClientPanel.VisibleChange); 163 164 DockItems.Remove(ClientPanel); 164 ManagerItem := FindControlInPanels(Control); 165 if Assigned(ManagerItem) then 166 Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange); 167 168 DockItems.Remove(ManagerItem); 165 169 ClientCount := DockItems.Count; 166 170 … … 184 188 var 185 189 I: Integer; 190 NewItem: TCDManagerRegionsItem; 186 191 begin 187 192 inherited; … … 189 194 FDockItems := TObjectList.Create; 190 195 191 for I := 0 to DockItems.Count - 1 do begin 192 if Assigned(TCDManagerRegionsItem(DockItems[I]).Splitter) then 193 with TCDManagerRegionsItem(DockItems[I]) do begin 194 Splitter.Visible := True; 195 Panel.Visible := True; 196 ClientAreaPanel.Parent := TCDManagerRegionsItem(DockItems[I]).Panel; 197 ClientAreaPanel.Visible := True; 198 Control.Visible := True; 199 end; 200 end; 196 for I := 0 to ADockSite.DockClientCount - 1 do 197 InsertControlNoUpdate(ADockSite.DockClients[I], alLeft); 198 UpdateClientSize; 201 199 end; 202 200 … … 214 212 for I := 0 to FDockItems.Count - 1 do 215 213 with TCDManagerRegionsItem(FDockItems[I]) do begin 216 Panel .Invalidate;214 PanelHeader.Invalidate; 217 215 end; 218 216 end; … … 233 231 for I := 0 to DockItems.Count - 1 do 234 232 with TCDManagerRegionsItem(DockItems[I]) do begin 235 Panel .Left := SplitterLeft;236 Panel .Top := SplitterTop;237 Panel .Height := Self.DockSite.Height div233 PanelHeader.Left := SplitterLeft; 234 PanelHeader.Top := SplitterTop; 235 PanelHeader.Height := Self.DockSite.Height div 238 236 Self.DockSite.DockClientCount; 239 Panel .Width := Self.DockSite.Width div237 PanelHeader.Width := Self.DockSite.Width div 240 238 Self.DockSite.DockClientCount; 241 239 //TCDClientPanel(FDockPanels[I]).DockPanelPaint(Self); 242 if I < (DockItems.Count - 1) then Panel .Align := BaseAlign243 else Panel .Align := alClient;244 245 Inc(SplitterLeft, Panel .Width);246 Inc(SplitterTop, Panel .Height);240 if I < (DockItems.Count - 1) then PanelHeader.Align := BaseAlign 241 else PanelHeader.Align := alClient; 242 243 Inc(SplitterLeft, PanelHeader.Width); 244 Inc(SplitterTop, PanelHeader.Height); 247 245 Splitter.Left := SplitterLeft; 248 246 Splitter.Top := SplitterTop; … … 255 253 Paint(Self); 256 254 if I < (DockItems.Count - 1) then begin 257 if DockDirection = ddHorizontal then Panel .Align := alLeft258 else Panel .Align := alTop;259 end else Panel .Align := alClient;255 if DockDirection = ddHorizontal then PanelHeader.Align := alLeft 256 else PanelHeader.Align := alTop; 257 end else PanelHeader.Align := alClient; 260 258 end; 261 259 end; -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r194 r195 11 11 12 12 type 13 TCDManagerTabsITem = class(TCDManagerItem) 14 13 14 { TCDManagerTabsItem } 15 16 TCDManagerTabsItem = class(TCDManagerItem) 17 Icon: TImage; 18 constructor Create; 19 destructor Destroy; override; 15 20 end; 16 21 … … 37 42 FTabsPos: THeaderPos; 38 43 function FindControlInPanels(Control: TControl): TCDManagerItem; override; 39 procedure InsertControlNoUpdate( AControl: TControl; InsertAt: TAlign);44 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); 40 45 procedure RemoveControl(Control: TControl); override; 41 46 public … … 57 62 UCDClient; 58 63 64 { TCDManagerTabsItem } 65 66 constructor TCDManagerTabsItem.Create; 67 begin 68 Icon := TImage.Create(nil); 69 end; 70 71 destructor TCDManagerTabsItem.Destroy; 72 begin 73 Icon.Free; 74 inherited Destroy; 75 end; 76 59 77 { TCDManagerTabs } 60 78 … … 91 109 I: Integer; 92 110 begin 93 // Hide all clients 111 UpdateClientSize; 112 { // Hide all clients 94 113 for I := 0 to DockItems.Count - 1 do 95 114 if TCDManagerItem(DockItems[I]).Control.Visible … … 137 156 //TCDClientPanel(FDockPanels[TabControl.TabIndex]).Visible := True; 138 157 end; 139 MouseDownSkip := True; 158 MouseDownSkip := True; } 140 159 end; 141 160 … … 175 194 Parent := ADockSite; 176 195 Name := Self.DockSite.Name + 'TabControl'; 177 Visible := False;178 Align := alTop;196 Visible := True; 197 //Align := alTop; 179 198 //Height := 24; 180 199 Align := alClient; … … 193 212 //MoveDuration := 1000; // ms 194 213 195 PageControl.Visible := True;214 //PageControl.Visible := True; 196 215 //TabImageList.Clear; 197 for I := 0 to DockItems.Count - 1 do198 Self.InsertControlNoUpdate(TCDManagerItem(DockItems[I]).Control, alNone);216 for I := 0 to ADockSite.DockClientCount - 1 do 217 InsertControlNoUpdate(ADockSite.DockClients[I], alNone); 199 218 TabControlChange(Self); 219 //TCDManagerTabs(Self).TabControlChange(Self); 200 220 end; 201 221 … … 221 241 end; 222 242 223 procedure TCDManagerTabs.InsertControlNoUpdate( AControl: TControl; InsertAt: TAlign);243 procedure TCDManagerTabs.InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); 224 244 var 225 245 NewTabSheet: TTabSheet; 226 New Panel: TCDManagerTabsItem;246 NewItem: TCDManagerTabsItem; 227 247 begin 228 248 inherited; 229 249 begin 230 New Panel:= TCDManagerTabsItem.Create;231 with New Paneldo begin250 NewItem := TCDManagerTabsItem.Create; 251 with NewItem do begin 232 252 //Panel.Parent := Self.DockSite; 233 253 Manager := Self; 234 if DockStyle = dsList then Visible := True;254 //if DockStyle = dsList then Visible := True; 235 255 //Align := alClient; 236 Header.PopupMenu := Self.PopupMenu;256 //Header.PopupMenu := Self.PopupMenu; 237 257 //PopupMenu.Parent := Self.DockSite; 238 258 end; 239 if ( AControl is TForm) and Assigned((AControl as TForm).Icon) then240 New Panel.Header.Icon.Picture.Assign((AControl as TForm).Icon);241 242 New Panel.Control := AControl;243 AControl.AddHandlerOnVisibleChanged(NewPanel.VisibleChange);244 //AControl.Parent := New Panel.ClientAreaPanel;245 AControl.Align := alClient;259 if (Control is TForm) and Assigned((Control as TForm).Icon) then 260 NewItem.Icon.Picture.Assign((Control as TForm).Icon); 261 262 NewItem.Control := Control; 263 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 264 //AControl.Parent := NewItem.ClientAreaPanel; 265 Control.Align := alClient; 246 266 if (InsertAt = alTop) or (InsertAt = alLeft) then 247 DockItems.Insert(0, NewPanel) 248 else DockItems.Add(NewPanel); 249 250 end; 251 252 if AControl.Visible then begin 267 DockItems.Insert(0, NewItem) 268 else DockItems.Add(NewItem); 269 270 end; 271 253 272 NewTabSheet := TTabSheet.Create(PageControl); 254 273 NewTabSheet.PageControl := PageControl; 255 NewTabSheet.Caption := AControl.Caption;274 NewTabSheet.Caption := Control.Caption; 256 275 NewTabSheet.ImageIndex := TabImageList.Count; 257 TabImageList.Add(NewPanel.Header.Icon.Picture.Bitmap, nil); 258 // if Assigned(NewPanel.Splitter) then 259 // NewPanel.Splitter.Visible := False; 260 // NewPanel.ClientAreaPanel.Visible := False; 261 // NewPanel.Visible := False; 262 //NewPanel.Parent := NewTabSheet; 263 end; 276 NewTabSheet.TabVisible := Control.Visible; 277 Control.Parent := NewTabSheet; 278 TabImageList.Add(NewItem.Icon.Picture.Bitmap, nil); 279 // if Assigned(NewItem.Splitter) then 280 // NewItem.Splitter.Visible := False; 281 // NewItem.ClientAreaPanel.Visible := False; 282 // NewItem.Visible := False; 283 //NewItem.Parent := NewTabSheet; 264 284 end; 265 285 … … 282 302 var 283 303 I: Integer; 304 NewTabSheet: TTabSheet; 284 305 begin 285 306 inherited UpdateClientSize; 286 for I := 0 to DockItems.Count - 1 do begin 307 for I := 0 to DockItems.Count - 1 do 308 with TCDManagerTabsItem(DockItems[I]) do begin 309 Control.Parent := PageControl.Pages[I]; 310 Control.Align := alClient; 311 287 312 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Width := DockSite.Width; 288 313 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Height := DockSite.Height - PageControl.Height; -
Docking/CoolDocking/UCDManager.pas
r194 r195 33 33 end; 34 34 35 { TCD ManagerItem}36 37 TCD ManagerItem = class35 { TCDPanelHeader } 36 37 TCDPanelHeader = class(TPanel) 38 38 private 39 39 FHeaderPos: THeaderPos; 40 40 FShowHeader: Boolean; 41 procedure SetHeaderPos(const AValue: THeaderPos); 42 public 43 Header: TCDHeader; 44 ControlPanel: TPanel; 45 property ShowHeader: Boolean read FShowHeader write FShowHeader; 46 property HeaderPos: THeaderPos read FHeaderPos write SetHeaderPos; 47 constructor Create(TheOwner: TComponent); 48 destructor Destroy; override; 49 end; 50 51 { TCDManagerItem } 52 53 TCDManagerItem = class 54 private 41 55 procedure DockPanelMouseDown(Sender: TObject; Button: TMouseButton; 42 56 Shift: TShiftState; X, Y: Integer); 43 57 procedure ResizeExecute(Sender: TObject); 44 procedure SetHeaderPos(const AValue: THeaderPos);45 58 public 46 Header: TCDHeader;47 59 Control: TControl; 48 60 Manager: TCDManager; … … 51 63 constructor Create; 52 64 destructor Destroy; override; 53 property ShowHeader: Boolean read FShowHeader write FShowHeader;54 property HeaderPos: THeaderPos read FHeaderPos write SetHeaderPos;55 65 end; 56 66 … … 116 126 UCDManagerRegions, UCDManagerTabs, UCDManagerRegionsPopup, UCDManagerTabsPopup; 117 127 118 { TCD ManagerItem}119 120 procedure TCD ManagerItem.SetHeaderPos(const AValue: THeaderPos);128 { TCDPanelHeader } 129 130 procedure TCDPanelHeader.SetHeaderPos(const AValue: THeaderPos); 121 131 begin 122 132 if FHeaderPos=AValue then exit; 123 133 FHeaderPos:=AValue; 124 Paint(Self); 125 end; 134 //Paint(Self); 135 end; 136 137 constructor TCDPanelHeader.Create(TheOwner: TComponent); 138 begin 139 inherited; 140 //Paint.OnPaint := Paint; 141 // Header.Shape.OnMouseDown := DockPanelMouseDown; 142 // Header.Title.OnMouseDown := DockPanelMouseDown; 143 HeaderPos := hpTop; 144 145 ShowHeader := True; 146 ControlPanel := TPanel.Create(Self); 147 with ControlPanel do begin 148 Parent := Self; 149 Visible := True; 150 DockSite := True; 151 UseDockManager := True; 152 Align := alClient; 153 BevelInner := bvNone; 154 BevelOuter := bvNone; 155 //Color := clGreen; 156 end; 157 Header := TCDHeader.Create(Self); 158 with Header do begin 159 Parent := Self; 160 Visible := ShowHeader; 161 Align := alTop; 162 Height := GrabberSize; 163 //ManagerItem := Self; 164 end; 165 //OnResize := ResizeExecute; 166 BevelInner := bvNone; 167 BevelOuter := bvNone; 168 end; 169 170 destructor TCDPanelHeader.Destroy; 171 begin 172 inherited Destroy; 173 end; 174 175 { TCDManagerItem } 126 176 127 177 procedure TCDManagerItem.Paint(Sender: TObject); … … 145 195 constructor TCDManagerItem.Create; 146 196 begin 147 //Paint.OnPaint := Paint;148 Header.Shape.OnMouseDown := DockPanelMouseDown;149 Header.Title.OnMouseDown := DockPanelMouseDown;150 //OnResize := ResizeExecute;151 //BevelInner := bvNone;152 //BevelOuter := bvNone;153 HeaderPos := hpTop;154 155 ShowHeader := True;156 Header := TCDHeader.Create(nil);157 with Header do begin158 Parent := nil;159 Visible := ShowHeader;160 Align := alTop;161 Height := GrabberSize;162 ManagerItem := Self;163 end;164 197 end; 165 198 … … 457 490 if AValue = dsTabs then begin 458 491 NewManager := TCDManagerTabs.Create(FDockSite); 459 //TCDManagerTabs(Self).TabControlChange(Self);460 492 end else 461 493 if AValue = dsList then begin
Note:
See TracChangeset
for help on using the changeset viewer.