- Timestamp:
- Mar 10, 2011, 1:32:41 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r185 r186 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count="5 6">49 <Units Count="57"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> … … 55 55 <TopLine Value="11"/> 56 56 <CursorPos X="15" Y="34"/> 57 <UsageCount Value="12 2"/>57 <UsageCount Value="127"/> 58 58 </Unit0> 59 59 <Unit1> … … 63 63 <ResourceBaseClass Value="Form"/> 64 64 <UnitName Value="UMainForm"/> 65 <EditorIndex Value=" 6"/>66 <WindowIndex Value="0"/> 67 <TopLine Value="1 17"/>68 <CursorPos X=" 1" Y="130"/>69 <UsageCount Value="12 2"/>65 <EditorIndex Value="11"/> 66 <WindowIndex Value="0"/> 67 <TopLine Value="148"/> 68 <CursorPos X="49" Y="163"/> 69 <UsageCount Value="127"/> 70 70 <Loaded Value="True"/> 71 71 <LoadedDesigner Value="True"/> … … 80 80 <TopLine Value="1"/> 81 81 <CursorPos X="12" Y="16"/> 82 <UsageCount Value="12 2"/>82 <UsageCount Value="127"/> 83 83 </Unit2> 84 84 <Unit3> … … 88 88 <ResourceBaseClass Value="Form"/> 89 89 <UnitName Value="UStructureForm"/> 90 <EditorIndex Value=" 3"/>90 <EditorIndex Value="8"/> 91 91 <WindowIndex Value="0"/> 92 92 <TopLine Value="1"/> 93 93 <CursorPos X="22" Y="4"/> 94 <UsageCount Value="12 2"/>94 <UsageCount Value="127"/> 95 95 <Loaded Value="True"/> 96 96 <LoadedDesigner Value="True"/> … … 105 105 <TopLine Value="1"/> 106 106 <CursorPos X="15" Y="10"/> 107 <UsageCount Value="12 2"/>107 <UsageCount Value="127"/> 108 108 </Unit4> 109 109 <Unit5> 110 110 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 111 <EditorIndex Value=" 9"/>111 <EditorIndex Value="14"/> 112 112 <WindowIndex Value="0"/> 113 113 <TopLine Value="1093"/> 114 114 <CursorPos X="1" Y="1106"/> 115 <UsageCount Value="5 6"/>115 <UsageCount Value="59"/> 116 116 <Loaded Value="True"/> 117 117 </Unit5> … … 125 125 <TopLine Value="1"/> 126 126 <CursorPos X="20" Y="16"/> 127 <UsageCount Value="12 2"/>127 <UsageCount Value="127"/> 128 128 </Unit6> 129 129 <Unit7> … … 143 143 <TopLine Value="1"/> 144 144 <CursorPos X="7" Y="16"/> 145 <UsageCount Value="12 2"/>145 <UsageCount Value="127"/> 146 146 </Unit8> 147 147 <Unit9> … … 154 154 <TopLine Value="1"/> 155 155 <CursorPos X="12" Y="15"/> 156 <UsageCount Value="12 2"/>156 <UsageCount Value="127"/> 157 157 </Unit9> 158 158 <Unit10> … … 165 165 <TopLine Value="1"/> 166 166 <CursorPos X="21" Y="4"/> 167 <UsageCount Value="12 2"/>167 <UsageCount Value="127"/> 168 168 </Unit10> 169 169 <Unit11> … … 176 176 <TopLine Value="1"/> 177 177 <CursorPos X="12" Y="16"/> 178 <UsageCount Value="12 2"/>178 <UsageCount Value="127"/> 179 179 </Unit11> 180 180 <Unit12> … … 187 187 <TopLine Value="1"/> 188 188 <CursorPos X="12" Y="17"/> 189 <UsageCount Value="12 2"/>189 <UsageCount Value="127"/> 190 190 </Unit12> 191 191 <Unit13> … … 198 198 <TopLine Value="1"/> 199 199 <CursorPos X="12" Y="16"/> 200 <UsageCount Value="12 2"/>200 <UsageCount Value="127"/> 201 201 </Unit13> 202 202 <Unit14> … … 206 206 <ResourceBaseClass Value="Form"/> 207 207 <UnitName Value="USourceEditorForm"/> 208 <EditorIndex Value=" 2"/>208 <EditorIndex Value="7"/> 209 209 <WindowIndex Value="0"/> 210 210 <TopLine Value="6"/> 211 211 <CursorPos X="31" Y="3"/> 212 <UsageCount Value="12 0"/>212 <UsageCount Value="125"/> 213 213 <Loaded Value="True"/> 214 214 <LoadedDesigner Value="True"/> … … 219 219 <EditorIndex Value="0"/> 220 220 <WindowIndex Value="0"/> 221 <TopLine Value=" 82"/>222 <CursorPos X=" 14" Y="95"/>223 <UsageCount Value="6 0"/>221 <TopLine Value="282"/> 222 <CursorPos X="37" Y="292"/> 223 <UsageCount Value="62"/> 224 224 <Loaded Value="True"/> 225 225 </Unit15> … … 228 228 <UnitName Value="UCoolDockLayout"/> 229 229 <IsVisibleTab Value="True"/> 230 <EditorIndex Value=" 1"/>231 <WindowIndex Value="0"/> 232 <TopLine Value="3 38"/>233 <CursorPos X=" 30" Y="348"/>234 <UsageCount Value=" 59"/>230 <EditorIndex Value="3"/> 231 <WindowIndex Value="0"/> 232 <TopLine Value="349"/> 233 <CursorPos X="22" Y="362"/> 234 <UsageCount Value="62"/> 235 235 <Loaded Value="True"/> 236 236 </Unit16> 237 237 <Unit17> 238 238 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 239 <EditorIndex Value="1 1"/>240 <WindowIndex Value="0"/> 241 <TopLine Value="1 883"/>242 <CursorPos X="1 0" Y="1896"/>243 <UsageCount Value="3 2"/>239 <EditorIndex Value="16"/> 240 <WindowIndex Value="0"/> 241 <TopLine Value="1644"/> 242 <CursorPos X="14" Y="1657"/> 243 <UsageCount Value="34"/> 244 244 <Loaded Value="True"/> 245 245 </Unit17> … … 247 247 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\types.pp"/> 248 248 <UnitName Value="types"/> 249 <EditorIndex Value="1 0"/>249 <EditorIndex Value="15"/> 250 250 <WindowIndex Value="0"/> 251 251 <TopLine Value="274"/> 252 252 <CursorPos X="10" Y="287"/> 253 <UsageCount Value="1 1"/>253 <UsageCount Value="13"/> 254 254 <Loaded Value="True"/> 255 255 </Unit18> … … 267 267 <TopLine Value="110"/> 268 268 <CursorPos X="18" Y="126"/> 269 <UsageCount Value="2 7"/>269 <UsageCount Value="26"/> 270 270 </Unit20> 271 271 <Unit21> … … 291 291 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\forms.pp"/> 292 292 <UnitName Value="Forms"/> 293 <WindowIndex Value="0"/> 294 <TopLine Value="776"/> 295 <CursorPos X="3" Y="789"/> 293 <EditorIndex Value="4"/> 294 <WindowIndex Value="0"/> 295 <TopLine Value="1623"/> 296 <CursorPos X="24" Y="1636"/> 296 297 <UsageCount Value="31"/> 298 <Loaded Value="True"/> 297 299 </Unit23> 298 300 <Unit24> … … 306 308 <Unit25> 307 309 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customcombobox.inc"/> 308 <EditorIndex Value=" 7"/>310 <EditorIndex Value="12"/> 309 311 <WindowIndex Value="0"/> 310 312 <TopLine Value="913"/> 311 313 <CursorPos X="1" Y="930"/> 312 <UsageCount Value="2 4"/>314 <UsageCount Value="26"/> 313 315 <Loaded Value="True"/> 314 316 </Unit25> … … 318 320 <TopLine Value="91"/> 319 321 <CursorPos X="1" Y="104"/> 320 <UsageCount Value="1 1"/>322 <UsageCount Value="10"/> 321 323 </Unit26> 322 324 <Unit27> … … 330 332 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 331 333 <UnitName Value="Controls"/> 332 <WindowIndex Value="0"/> 333 <TopLine Value="3859"/> 334 <CursorPos X="1" Y="3872"/> 334 <EditorIndex Value="6"/> 335 <WindowIndex Value="0"/> 336 <TopLine Value="1397"/> 337 <CursorPos X="14" Y="1410"/> 335 338 <UsageCount Value="35"/> 339 <Loaded Value="True"/> 336 340 </Unit28> 337 341 <Unit29> 338 342 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 339 <WindowIndex Value="0"/> 340 <TopLine Value="7662"/> 341 <CursorPos X="1" Y="7675"/> 342 <UsageCount Value="28"/> 343 <EditorIndex Value="1"/> 344 <WindowIndex Value="0"/> 345 <TopLine Value="7763"/> 346 <CursorPos X="1" Y="7776"/> 347 <UsageCount Value="29"/> 348 <Loaded Value="True"/> 343 349 </Unit29> 344 350 <Unit30> … … 363 369 <Filename Value="..\..\UCoolDockCommon.pas"/> 364 370 <UnitName Value="UCoolDockCommon"/> 365 <WindowIndex Value="0"/> 366 <TopLine Value="1"/> 367 <CursorPos X="25" Y="11"/> 368 <UsageCount Value="50"/> 371 <EditorIndex Value="2"/> 372 <WindowIndex Value="0"/> 373 <TopLine Value="7"/> 374 <CursorPos X="3" Y="20"/> 375 <UsageCount Value="53"/> 376 <Loaded Value="True"/> 369 377 </Unit32> 370 378 <Unit33> … … 400 408 <Unit37> 401 409 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classes.inc"/> 402 <WindowIndex Value="0"/> 403 <TopLine Value="7"/> 404 <CursorPos X="3" Y="20"/> 405 <UsageCount Value="5"/> 410 <EditorIndex Value="17"/> 411 <WindowIndex Value="0"/> 412 <TopLine Value="514"/> 413 <CursorPos X="60" Y="523"/> 414 <UsageCount Value="10"/> 415 <Loaded Value="True"/> 406 416 </Unit37> 407 417 <Unit38> … … 423 433 <Filename Value="..\..\UCoolDockStyle.pas"/> 424 434 <UnitName Value="UCoolDockStyle"/> 425 <EditorIndex Value=" 5"/>426 <WindowIndex Value="0"/> 427 <TopLine Value=" 10"/>428 <CursorPos X="1 5" Y="23"/>429 <UsageCount Value="3 4"/>435 <EditorIndex Value="10"/> 436 <WindowIndex Value="0"/> 437 <TopLine Value="53"/> 438 <CursorPos X="1" Y="66"/> 439 <UsageCount Value="36"/> 430 440 <Loaded Value="True"/> 431 441 </Unit40> … … 433 443 <Filename Value="..\..\UCoolDockClientPanel.pas"/> 434 444 <UnitName Value="UCoolDockClientPanel"/> 435 <EditorIndex Value=" 4"/>436 <WindowIndex Value="0"/> 437 <TopLine Value=" 259"/>438 <CursorPos X=" 26" Y="270"/>439 <UsageCount Value="3 4"/>445 <EditorIndex Value="9"/> 446 <WindowIndex Value="0"/> 447 <TopLine Value="150"/> 448 <CursorPos X="3" Y="152"/> 449 <UsageCount Value="36"/> 440 450 <Loaded Value="True"/> 441 451 </Unit41> … … 451 461 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 452 462 <UnitName Value="UCoolDockStyleTabs"/> 453 <EditorIndex Value="1 2"/>463 <EditorIndex Value="18"/> 454 464 <WindowIndex Value="0"/> 455 465 <TopLine Value="192"/> 456 466 <CursorPos X="52" Y="205"/> 457 <UsageCount Value="3 3"/>467 <UsageCount Value="35"/> 458 468 <Loaded Value="True"/> 459 469 </Unit43> … … 484 494 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 485 495 <UnitName Value="UCoolDockStyleRegions"/> 486 <EditorIndex Value=" 8"/>487 <WindowIndex Value="0"/> 488 <TopLine Value=" 64"/>489 <CursorPos X=" 1" Y="76"/>490 <UsageCount Value="3 2"/>496 <EditorIndex Value="13"/> 497 <WindowIndex Value="0"/> 498 <TopLine Value="82"/> 499 <CursorPos X="40" Y="120"/> 500 <UsageCount Value="34"/> 491 501 <Loaded Value="True"/> 492 502 </Unit47> … … 545 555 <TopLine Value="23"/> 546 556 <CursorPos X="15" Y="24"/> 547 <UsageCount Value="2 4"/>557 <UsageCount Value="28"/> 548 558 </Unit54> 549 559 <Unit55> … … 555 565 <UsageCount Value="10"/> 556 566 </Unit55> 567 <Unit56> 568 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\packages\fcl-base\src\custapp.pp"/> 569 <UnitName Value="CustApp"/> 570 <EditorIndex Value="5"/> 571 <WindowIndex Value="0"/> 572 <TopLine Value="13"/> 573 <CursorPos X="3" Y="26"/> 574 <UsageCount Value="10"/> 575 <Loaded Value="True"/> 576 </Unit56> 557 577 </Units> 558 578 <JumpHistory Count="30" HistoryIndex="29"> 559 579 <Position1> 560 <Filename Value=" UMainForm.pas"/>561 <Caret Line=" 129" Column="1" TopLine="117"/>580 <Filename Value="..\..\UCoolDockLayout.pas"/> 581 <Caret Line="386" Column="36" TopLine="369"/> 562 582 </Position1> 563 583 <Position2> 564 <Filename Value=" UMainForm.pas"/>565 <Caret Line=" 130" Column="72" TopLine="117"/>584 <Filename Value="..\..\UCoolDockLayout.pas"/> 585 <Caret Line="81" Column="17" TopLine="59"/> 566 586 </Position2> 567 587 <Position3> 568 588 <Filename Value="..\..\UCoolDockLayout.pas"/> 569 <Caret Line=" 517" Column="54" TopLine="507"/>589 <Caret Line="88" Column="32" TopLine="69"/> 570 590 </Position3> 571 591 <Position4> 572 <Filename Value=" UMainForm.pas"/>573 <Caret Line=" 129" Column="1" TopLine="117"/>592 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 593 <Caret Line="3" Column="72" TopLine="1"/> 574 594 </Position4> 575 595 <Position5> 576 <Filename Value=" ..\..\UCoolDockLayout.pas"/>577 <Caret Line=" 513" Column="1" TopLine="507"/>596 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 597 <Caret Line="1942" Column="23" TopLine="1921"/> 578 598 </Position5> 579 599 <Position6> 580 <Filename Value=" ..\..\UCoolDockLayout.pas"/>581 <Caret Line=" 514" Column="1" TopLine="507"/>600 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 601 <Caret Line="1955" Column="87" TopLine="1934"/> 582 602 </Position6> 583 603 <Position7> 584 604 <Filename Value="..\..\UCoolDockLayout.pas"/> 585 <Caret Line=" 515" Column="1" TopLine="507"/>605 <Caret Line="88" Column="32" TopLine="69"/> 586 606 </Position7> 587 607 <Position8> 588 608 <Filename Value="..\..\UCoolDockLayout.pas"/> 589 <Caret Line=" 516" Column="1" TopLine="507"/>609 <Caret Line="83" Column="9" TopLine="70"/> 590 610 </Position8> 591 611 <Position9> 592 612 <Filename Value="..\..\UCoolDockLayout.pas"/> 593 <Caret Line=" 514" Column="1" TopLine="507"/>613 <Caret Line="90" Column="25" TopLine="77"/> 594 614 </Position9> 595 615 <Position10> 596 616 <Filename Value="..\..\UCoolDockLayout.pas"/> 597 <Caret Line="5 15" Column="1" TopLine="507"/>617 <Caret Line="541" Column="25" TopLine="519"/> 598 618 </Position10> 599 619 <Position11> 600 620 <Filename Value="..\..\UCoolDockLayout.pas"/> 601 <Caret Line=" 516" Column="1" TopLine="507"/>621 <Caret Line="397" Column="1" TopLine="380"/> 602 622 </Position11> 603 623 <Position12> 604 624 <Filename Value="..\..\UCoolDockLayout.pas"/> 605 <Caret Line=" 515" Column="1" TopLine="507"/>625 <Caret Line="398" Column="1" TopLine="380"/> 606 626 </Position12> 607 627 <Position13> 608 628 <Filename Value="..\..\UCoolDockLayout.pas"/> 609 <Caret Line=" 516" Column="1" TopLine="507"/>629 <Caret Line="397" Column="1" TopLine="380"/> 610 630 </Position13> 611 631 <Position14> 612 <Filename Value=" UMainForm.pas"/>613 <Caret Line=" 130" Column="1" TopLine="117"/>632 <Filename Value="..\..\UCoolDockLayout.pas"/> 633 <Caret Line="82" Column="1" TopLine="69"/> 614 634 </Position14> 615 635 <Position15> 616 636 <Filename Value="..\..\UCoolDockLayout.pas"/> 617 <Caret Line=" 513" Column="1" TopLine="507"/>637 <Caret Line="83" Column="1" TopLine="69"/> 618 638 </Position15> 619 639 <Position16> 620 640 <Filename Value="..\..\UCoolDockLayout.pas"/> 621 <Caret Line=" 516" Column="1" TopLine="507"/>641 <Caret Line="84" Column="1" TopLine="69"/> 622 642 </Position16> 623 643 <Position17> 624 <Filename Value=" UMainForm.pas"/>625 <Caret Line=" 118" Column="89" TopLine="117"/>644 <Filename Value="..\..\UCoolDockLayout.pas"/> 645 <Caret Line="85" Column="1" TopLine="69"/> 626 646 </Position17> 627 647 <Position18> 628 648 <Filename Value="..\..\UCoolDockLayout.pas"/> 629 <Caret Line=" 513" Column="1" TopLine="507"/>649 <Caret Line="88" Column="41" TopLine="69"/> 630 650 </Position18> 631 651 <Position19> 632 652 <Filename Value="..\..\UCoolDockLayout.pas"/> 633 <Caret Line=" 516" Column="1" TopLine="507"/>653 <Caret Line="400" Column="1" TopLine="387"/> 634 654 </Position19> 635 655 <Position20> 636 <Filename Value=" UMainForm.pas"/>637 <Caret Line=" 130" Column="1" TopLine="117"/>656 <Filename Value="..\..\UCoolDockLayout.pas"/> 657 <Caret Line="88" Column="53" TopLine="75"/> 638 658 </Position20> 639 659 <Position21> 640 660 <Filename Value="..\..\UCoolDockLayout.pas"/> 641 <Caret Line=" 513" Column="1" TopLine="507"/>661 <Caret Line="400" Column="1" TopLine="387"/> 642 662 </Position21> 643 663 <Position22> 644 664 <Filename Value="..\..\UCoolDockLayout.pas"/> 645 <Caret Line=" 516" Column="1" TopLine="507"/>665 <Caret Line="401" Column="1" TopLine="387"/> 646 666 </Position22> 647 667 <Position23> 648 <Filename Value=" UMainForm.pas"/>649 <Caret Line=" 130" Column="1" TopLine="117"/>668 <Filename Value="..\..\UCoolDockLayout.pas"/> 669 <Caret Line="400" Column="1" TopLine="387"/> 650 670 </Position23> 651 671 <Position24> 652 672 <Filename Value="..\..\UCoolDockLayout.pas"/> 653 <Caret Line=" 513" Column="1" TopLine="507"/>673 <Caret Line="401" Column="1" TopLine="387"/> 654 674 </Position24> 655 675 <Position25> 656 676 <Filename Value="..\..\UCoolDockLayout.pas"/> 657 <Caret Line=" 516" Column="1" TopLine="507"/>677 <Caret Line="418" Column="34" TopLine="396"/> 658 678 </Position25> 659 679 <Position26> 660 680 <Filename Value="..\..\UCoolDockLayout.pas"/> 661 <Caret Line=" 514" Column="1" TopLine="507"/>681 <Caret Line="400" Column="1" TopLine="395"/> 662 682 </Position26> 663 683 <Position27> 664 684 <Filename Value="..\..\UCoolDockLayout.pas"/> 665 <Caret Line=" 515" Column="5" TopLine="507"/>685 <Caret Line="401" Column="1" TopLine="395"/> 666 686 </Position27> 667 687 <Position28> 668 688 <Filename Value="..\..\UCoolDockLayout.pas"/> 669 <Caret Line=" 510" Column="27" TopLine="507"/>689 <Caret Line="417" Column="1" TopLine="396"/> 670 690 </Position28> 671 691 <Position29> 672 692 <Filename Value="..\..\UCoolDockLayout.pas"/> 673 <Caret Line=" 517" Column="1" TopLine="507"/>693 <Caret Line="418" Column="1" TopLine="397"/> 674 694 </Position29> 675 695 <Position30> 676 696 <Filename Value="..\..\UCoolDockLayout.pas"/> 677 <Caret Line=" 523" Column="1" TopLine="507"/>697 <Caret Line="420" Column="1" TopLine="399"/> 678 698 </Position30> 679 699 </JumpHistory> … … 704 724 <Item1> 705 725 <Source Value="..\..\UCoolDocking.pas"/> 706 <Line Value="29 6"/>726 <Line Value="294"/> 707 727 </Item1> 708 728 </BreakPoints> 709 729 <Watches Count="1"> 710 730 <Item1> 711 <Expression Value=" AControl.FName"/>731 <Expression Value="Form"/> 712 732 </Item1> 713 733 </Watches> -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r185 r186 159 159 NewContainer1.Show; 160 160 161 StructureForm.ManualDock(NewContainer1 .Panel, nil, alTop);161 StructureForm.ManualDock(NewContainer1, nil, alTop); 162 162 StructureForm.Show; 163 ObjectInspectorForm.ManualDock(NewContainer1 .Panel, nil, alTop);163 ObjectInspectorForm.ManualDock(NewContainer1, nil, alTop); 164 164 ObjectInspectorForm.Show; 165 165 166 166 NewContainer2 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight); 167 167 NewContainer2.Show; 168 ProjectManagerForm.ManualDock(NewContainer2 .Panel, nil, alTop);168 ProjectManagerForm.ManualDock(NewContainer2, nil, alTop); 169 169 ProjectManagerForm.Show; 170 ToolPaletteForm.ManualDock(NewContainer2 .Panel, nil, alTop);170 ToolPaletteForm.ManualDock(NewContainer2, nil, alTop); 171 171 ToolPaletteForm.Show; 172 172 -
Docking/CoolDocking/UCoolDockLayout.pas
r185 r186 7 7 uses 8 8 Classes, SysUtils, FileUtil, Contnrs, URectangle, Forms, UCoolDockCommon, 9 DOM, XMLWrite, XMLRead, Controls ;9 DOM, XMLWrite, XMLRead, Controls, Dialogs; 10 10 11 11 type … … 77 77 end; 78 78 79 function FindGlobalComponentDeep(Name: string): TComponent; 80 var 81 I: Integer; 82 begin 83 for I := 0 to Application.ComponentCount - 1 do begin 84 Result := Application.Components[I]; 85 if Result.Name = Name then Exit 86 else begin 87 Result := Result.FindComponent(Name); 88 if Assigned(Result) and (Result.Name = Name) then Exit; 89 end; 90 end; 91 end; 92 79 93 { TCoolDockLayoutList } 80 94 … … 346 360 else ParentName := ''; 347 361 if Assigned(Form.HostDockSite) then begin 348 if Assigned(Form.HostDockSite .Parent) and (Form.HostDockSite.Parent is TForm) then362 if Assigned(Form.HostDockSite) then 349 363 begin 350 HostDockSiteName := Form.HostDockSite. Parent.Name;364 HostDockSiteName := Form.HostDockSite.Name; 351 365 if not Assigned(Parent.FindByName(HostDockSiteName)) then begin 352 366 NewItem := TCoolDockLayoutItem.Create; 353 367 NewItem.Parent := Parent; 354 NewItem.DockStyle := TCoolDockManager(Form.HostDockSite. Parent.DockManager).DockStyle;368 NewItem.DockStyle := TCoolDockManager(Form.HostDockSite.DockManager).DockStyle; 355 369 Parent.Items.Add(NewItem); 356 NewItem.Store(Form.HostDockSite .Parent);370 NewItem.Store(Form.HostDockSite); 357 371 end; 358 372 end; … … 383 397 Form.Visible := Visible; 384 398 if HostDockSiteName <> '' then begin 385 ParentComponent := FindGlobalComponent (HostDockSiteName);399 ParentComponent := FindGlobalComponentDeep(HostDockSiteName); 386 400 if not Assigned(ParentComponent) then begin 387 401 ParentLayoutItem := Parent.FindByName(HostDockSiteName); … … 393 407 if FormClass = TCoolDockConjoinForm then begin 394 408 ParentComponent := TCoolDockManager(Form.DockManager).CreateContainer(alNone); 395 TCoolDockManager(TCoolDockConjoinForm(ParentComponent). Panel.DockManager).DockStyle := ParentLayoutItem.DockStyle;409 TCoolDockManager(TCoolDockConjoinForm(ParentComponent).DockManager).DockStyle := ParentLayoutItem.DockStyle; 396 410 ParentLayoutItem.Restore(TWinControl(ParentComponent)); 397 411 end; … … 400 414 end; 401 415 end; 402 if Assigned(ParentComponent) and (ParentComponent is T CoolDockConjoinForm) then403 Form.ManualDock(T CoolDockConjoinForm(ParentComponent).Panel);416 if Assigned(ParentComponent) and (ParentComponent is TWinControl) then 417 Form.ManualDock(TWinControl(ParentComponent)); 404 418 end; 405 419 Processed := True; -
Docking/CoolDocking/UCoolDockStyleRegions.pas
r185 r186 74 74 // FDockSite.ManualFloat(FDockSite.BoundsRect); 75 75 NewConjoinDockForm.ManualDock(NewDockSite); 76 AControl.ManualDock(NewConjoinDockForm .Panel, nil, InsertAt);76 AControl.ManualDock(NewConjoinDockForm, nil, InsertAt); 77 77 if DockSite is TForm then 78 DockSite.ManualDock(NewConjoinDockForm .Panel)78 DockSite.ManualDock(NewConjoinDockForm) 79 79 else 80 80 if DockSite is TPanel then 81 DockSite.Parent.ManualDock(NewConjoinDockForm .Panel);81 DockSite.Parent.ManualDock(NewConjoinDockForm); 82 82 UpdateClientSize; 83 83 Exit; … … 110 110 var 111 111 ClientPanel: TCoolDockClientPanel; 112 ClientCount: Integer; 112 113 begin 113 114 ClientPanel := TCoolDockManager(Manager).FindControlInPanels(Control); … … 115 116 116 117 TCoolDockManager(Manager).DockPanels.Remove(ClientPanel); 118 ClientCount := TCoolDockManager(Manager).DockPanels.Count; 117 119 118 120 //if TCoolDockManager(Manager).DockSite.DockClientCount = 2 then FDockDirection := ddNone; 119 if TCoolDockManager(Manager).DockPanels.Count = 1 then begin121 if ClientCount = 1 then begin 120 122 // Last removed control => Free parent if it is TCoolDockConjoinForm 121 if TCoolDockManager(Manager).DockSite .Parentis TCoolDockConjoinForm then122 with TCoolDockConjoinForm(TCoolDockManager(Manager).DockSite .Parent) do begin123 if TCoolDockManager(Manager).DockSite is TCoolDockConjoinForm then 124 with TCoolDockConjoinForm(TCoolDockManager(Manager).DockSite) do begin 123 125 if Assigned(Parent) then begin 124 126 TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[0]).Control.ManualDock(HostDockSite); … … 129 131 end; 130 132 inherited RemoveControl(Control); 133 if ClientCount > 1 then UpdateClientSize; 131 134 end; 132 135 … … 191 194 else Align := alClient; 192 195 196 Inc(SplitterLeft, Width); 197 Inc(SplitterTop, Height); 193 198 Splitter.Left := SplitterLeft; 194 199 Splitter.Top := SplitterTop; 195 Inc(SplitterLeft, Width);196 Inc(SplitterTop, Height);197 200 Splitter.Parent := TCoolDockManager(Manager).DockSite; 198 201 Splitter.Align := BaseAlign; 199 202 Splitter.Visible := I < (DockPanels.Count - 1); 200 203 Inc(SplitterLeft, Splitter.Width); 204 Inc(SplitterTop, Splitter.Height); 201 205 202 206 DockPanelPaint(Self); -
Docking/CoolDocking/UCoolDocking.pas
r185 r186 27 27 TCoolDockConjoinForm = class(TCoolDockConjoinFormBase) 28 28 public 29 Panel: TPanel;30 29 CoolDockClient: TCoolDockClient; 31 30 procedure FormShow(Sender : TObject); … … 35 34 private 36 35 procedure SetName(const NewName: TComponentName); override; 37 procedure PanelVisibleChange(Sender: TObject);38 36 end; 39 37 … … 287 285 NewForm: TForm; 288 286 begin 289 if (FDockSite is TForm) then begin287 if (FDockSite is TForm) and (not (FDockSite is TCoolDockConjoinForm)) then begin 290 288 if (not Assigned(FDockSite.Parent)) then begin 291 289 // Create conjointed form 292 290 NewConjoinDockForm := CreateContainer(InsertAt); 293 FDockSite.ManualDock(NewConjoinDockForm .Panel);294 Control.ManualDock(NewConjoinDockForm .Panel, nil, InsertAt);291 FDockSite.ManualDock(NewConjoinDockForm); 292 Control.ManualDock(NewConjoinDockForm, nil, InsertAt); 295 293 end else begin 296 294 NewConjoinDockForm := CreateContainer(InsertAt); … … 298 296 // FDockSite.ManualFloat(FDockSite.BoundsRect); 299 297 NewConjoinDockForm.ManualDock(NewDockSite, nil, InsertAt); 300 FDockSite.ManualDock(NewConjoinDockForm .Panel);301 Control.ManualDock(NewConjoinDockForm .Panel, nil, InsertAt);298 FDockSite.ManualDock(NewConjoinDockForm); 299 Control.ManualDock(NewConjoinDockForm, nil, InsertAt); 302 300 end; 303 301 end else 304 if (FDockSite is T Panel) or (FDockSite is TCoolDockClientPanel) then begin302 if (FDockSite is TCoolDockConjoinForm) or (FDockSite is TPanel) or (FDockSite is TCoolDockClientPanel) then begin 305 303 InsertControlPanel(Control, InsertAt, DropCtl); 306 304 end; … … 479 477 procedure TCoolDockConjoinForm.FormShow(Sender: TObject); 480 478 begin 481 Panel.Show; 482 TCoolDockManager(Panel.DockManager).Visible := True; 479 TCoolDockManager(DockManager).Visible := True; 483 480 end; 484 481 … … 487 484 I: Integer; 488 485 begin 489 Panel.Hide; 490 TCoolDockManager(Panel.DockManager).Visible := False; 486 TCoolDockManager(DockManager).Visible := False; 491 487 // Hide all docked childs 492 with TCoolDockManager( Panel.DockManager) do488 with TCoolDockManager(DockManager) do 493 489 for I := 0 to DockPanels.Count - 1 do 494 490 if Assigned(TCoolDockClientPanel(DockPanels[I]).Control) then begin … … 501 497 begin 502 498 inherited CreateNew(TheOwner); 503 Panel := TPanel.Create(Self);504 with Panel do begin505 Parent := Self;506 Caption := '';507 DockSite := True;508 UseDockManager := True;509 Align := alClient;510 BevelOuter := bvNone;511 BevelInner := bvNone;512 // Color := clYellow;513 end;514 499 CoolDockClient := TCoolDockClient.Create(Self); 515 500 with CoolDockClient do begin 516 Panel := Self.Panel;517 501 end; 518 502 OnShow := FormShow; 519 503 OnHide := FormHide; 520 521 Panel.AddHandlerOnVisibleChanged(PanelVisibleChange);522 504 end; 523 505 524 506 destructor TCoolDockConjoinForm.Destroy; 525 507 begin 526 Panel.RemoveHandlerOnVisibleChanged(PanelVisibleChange);527 508 inherited; 528 509 end; … … 531 512 begin 532 513 inherited SetName(NewName); 533 Panel.Name := Name + 'Panel';534 Panel.Caption := '';535 514 CoolDockClient.Name := Name + 'CoolDockClient'; 536 end;537 538 procedure TCoolDockConjoinForm.PanelVisibleChange(Sender: TObject);539 begin540 Visible := Panel.Visible;541 515 end; 542 516
Note:
See TracChangeset
for help on using the changeset viewer.