- Timestamp:
- Dec 29, 2010, 1:56:04 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/Demo.lpi
r98 r103 38 38 </Item2> 39 39 </RequiredPackages> 40 <Units Count=" 57">40 <Units Count="64"> 41 41 <Unit0> 42 42 <Filename Value="Demo.lpr"/> 43 43 <IsPartOfProject Value="True"/> 44 44 <UnitName Value="Demo"/> 45 <EditorIndex Value=" 5"/>46 <WindowIndex Value="0"/> 47 <TopLine Value=" 2"/>48 <CursorPos X=" 46" Y="14"/>49 <UsageCount Value="1 84"/>45 <EditorIndex Value="2"/> 46 <WindowIndex Value="0"/> 47 <TopLine Value="4"/> 48 <CursorPos X="34" Y="15"/> 49 <UsageCount Value="195"/> 50 50 <Loaded Value="True"/> 51 51 <DefaultSyntaxHighlighter Value="Delphi"/> … … 57 57 <ResourceBaseClass Value="Form"/> 58 58 <UnitName Value="UMainForm"/> 59 <EditorIndex Value=" 9"/>60 <WindowIndex Value="0"/> 61 <TopLine Value="5 8"/>62 <CursorPos X=" 5" Y="73"/>63 <UsageCount Value="1 84"/>59 <EditorIndex Value="14"/> 60 <WindowIndex Value="0"/> 61 <TopLine Value="59"/> 62 <CursorPos X="3" Y="75"/> 63 <UsageCount Value="195"/> 64 64 <Loaded Value="True"/> 65 65 <LoadedDesigner Value="True"/> … … 70 70 <UnitName Value="Controls"/> 71 71 <WindowIndex Value="0"/> 72 <TopLine Value="1 359"/>73 <CursorPos X="1 4" Y="1399"/>74 <UsageCount Value=" 58"/>72 <TopLine Value="1191"/> 73 <CursorPos X="15" Y="1203"/> 74 <UsageCount Value="60"/> 75 75 </Unit2> 76 76 <Unit3> … … 85 85 <Unit4> 86 86 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 87 <WindowIndex Value="0"/> 88 <TopLine Value="4767"/> 89 <CursorPos X="59" Y="4774"/> 90 <UsageCount Value="51"/> 87 <EditorIndex Value="7"/> 88 <WindowIndex Value="0"/> 89 <TopLine Value="3709"/> 90 <CursorPos X="1" Y="3726"/> 91 <UsageCount Value="53"/> 92 <Loaded Value="True"/> 91 93 </Unit4> 92 94 <Unit5> 93 95 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 94 <WindowIndex Value="0"/> 95 <TopLine Value="3429"/> 96 <CursorPos X="1" Y="3442"/> 97 <UsageCount Value="56"/> 96 <EditorIndex Value="8"/> 97 <WindowIndex Value="0"/> 98 <TopLine Value="6352"/> 99 <CursorPos X="42" Y="6355"/> 100 <UsageCount Value="58"/> 101 <Loaded Value="True"/> 98 102 </Unit5> 99 103 <Unit6> … … 109 113 <TopLine Value="206"/> 110 114 <CursorPos X="8" Y="219"/> 111 <UsageCount Value=" 0"/>115 <UsageCount Value="10"/> 112 116 </Unit7> 113 117 <Unit8> 114 118 <Filename Value="E:\Programy\Lazarus\lcl\lclproc.pas"/> 115 119 <UnitName Value="LCLProc"/> 116 <WindowIndex Value="0"/> 117 <TopLine Value="2412"/> 118 <CursorPos X="38" Y="2417"/> 119 <UsageCount Value="21"/> 120 <EditorIndex Value="6"/> 121 <WindowIndex Value="0"/> 122 <TopLine Value="1516"/> 123 <CursorPos X="1" Y="1528"/> 124 <UsageCount Value="23"/> 125 <Loaded Value="True"/> 120 126 </Unit8> 121 127 <Unit9> … … 126 132 <ResourceBaseClass Value="Form"/> 127 133 <UnitName Value="UDockForm"/> 128 <WindowIndex Value="0"/> 129 <TopLine Value="7"/> 130 <CursorPos X="33" Y="21"/> 131 <UsageCount Value="183"/> 134 <EditorIndex Value="3"/> 135 <WindowIndex Value="0"/> 136 <TopLine Value="18"/> 137 <CursorPos X="1" Y="39"/> 138 <UsageCount Value="194"/> 139 <Loaded Value="True"/> 132 140 <DefaultSyntaxHighlighter Value="Delphi"/> 133 141 </Unit9> … … 138 146 <TopLine Value="971"/> 139 147 <CursorPos X="3" Y="984"/> 140 <UsageCount Value=" 10"/>148 <UsageCount Value="9"/> 141 149 </Unit10> 142 150 <Unit11> … … 170 178 <UnitName Value="ExtCtrls"/> 171 179 <WindowIndex Value="0"/> 172 <TopLine Value="12 15"/>173 <CursorPos X=" 3" Y="1228"/>174 <UsageCount Value="5 3"/>180 <TopLine Value="1245"/> 181 <CursorPos X="14" Y="1258"/> 182 <UsageCount Value="55"/> 175 183 </Unit14> 176 184 <Unit15> … … 191 199 <Unit17> 192 200 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 193 <WindowIndex Value="0"/> 194 <TopLine Value="2573"/> 195 <CursorPos X="36" Y="2586"/> 196 <UsageCount Value="6"/> 201 <EditorIndex Value="10"/> 202 <WindowIndex Value="0"/> 203 <TopLine Value="85"/> 204 <CursorPos X="24" Y="94"/> 205 <UsageCount Value="11"/> 206 <Loaded Value="True"/> 197 207 </Unit17> 198 208 <Unit18> … … 232 242 <UnitName Value="Menus"/> 233 243 <WindowIndex Value="0"/> 234 <TopLine Value=" 280"/>235 <CursorPos X=" 33" Y="293"/>236 <UsageCount Value="1 0"/>244 <TopLine Value="391"/> 245 <CursorPos X="17" Y="404"/> 246 <UsageCount Value="11"/> 237 247 </Unit22> 238 248 <Unit23> … … 240 250 <UnitName Value="UCoolDocking"/> 241 251 <IsVisibleTab Value="True"/> 242 <EditorIndex Value=" 0"/>243 <WindowIndex Value="0"/> 244 <TopLine Value=" 221"/>245 <CursorPos X=" 24" Y="239"/>246 <UsageCount Value="8 2"/>252 <EditorIndex Value="5"/> 253 <WindowIndex Value="0"/> 254 <TopLine Value="438"/> 255 <CursorPos X="1" Y="450"/> 256 <UsageCount Value="87"/> 247 257 <Loaded Value="True"/> 248 258 <DefaultSyntaxHighlighter Value="Delphi"/> … … 250 260 <Unit24> 251 261 <Filename Value="..\ReadMe.txt"/> 262 <EditorIndex Value="4"/> 252 263 <WindowIndex Value="0"/> 253 264 <TopLine Value="1"/> 254 265 <CursorPos X="18" Y="11"/> 255 266 <UsageCount Value="19"/> 267 <Loaded Value="True"/> 256 268 <DefaultSyntaxHighlighter Value="None"/> 257 269 </Unit24> … … 274 286 <WindowIndex Value="0"/> 275 287 <TopLine Value="50"/> 276 <CursorPos X="1 8" Y="61"/>277 <UsageCount Value=" 19"/>288 <CursorPos X="14" Y="59"/> 289 <UsageCount Value="20"/> 278 290 </Unit27> 279 291 <Unit28> … … 303 315 <UnitName Value="UCoolDockWindowList"/> 304 316 <WindowIndex Value="0"/> 305 <TopLine Value=" 59"/>306 <CursorPos X="4 4" Y="61"/>307 <UsageCount Value="1 "/>317 <TopLine Value="73"/> 318 <CursorPos X="42" Y="90"/> 319 <UsageCount Value="11"/> 308 320 <DefaultSyntaxHighlighter Value="Delphi"/> 309 321 </Unit30> … … 317 329 <TopLine Value="1"/> 318 330 <CursorPos X="53" Y="2"/> 319 <UsageCount Value="1 26"/>331 <UsageCount Value="137"/> 320 332 <DefaultSyntaxHighlighter Value="Delphi"/> 321 333 </Unit31> … … 340 352 <TopLine Value="3034"/> 341 353 <CursorPos X="1" Y="3047"/> 342 <UsageCount Value=" 0"/>354 <UsageCount Value="10"/> 343 355 </Unit34> 344 356 <Unit35> … … 412 424 <UnitName Value="UComponentTree"/> 413 425 <WindowIndex Value="0"/> 414 <TopLine Value="3 7"/>415 <CursorPos X=" 18" Y="39"/>416 <UsageCount Value=" 78"/>426 <TopLine Value="35"/> 427 <CursorPos X="44" Y="45"/> 428 <UsageCount Value="89"/> 417 429 <DefaultSyntaxHighlighter Value="Delphi"/> 418 430 </Unit44> … … 426 438 <Unit46> 427 439 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\classesh.inc"/> 428 <WindowIndex Value="0"/> 429 <TopLine Value="107"/> 430 <CursorPos X="3" Y="120"/> 431 <UsageCount Value="10"/> 440 <EditorIndex Value="11"/> 441 <WindowIndex Value="0"/> 442 <TopLine Value="1638"/> 443 <CursorPos X="15" Y="1650"/> 444 <UsageCount Value="14"/> 445 <Loaded Value="True"/> 432 446 </Unit46> 433 447 <Unit47> … … 442 456 <Filename Value="..\UCoolDockStyleTabs.pas"/> 443 457 <UnitName Value="UCoolDockStyleTabs"/> 444 <WindowIndex Value="0"/> 445 <TopLine Value="127"/> 446 <CursorPos X="42" Y="140"/> 447 <UsageCount Value="38"/> 458 <EditorIndex Value="0"/> 459 <WindowIndex Value="0"/> 460 <TopLine Value="171"/> 461 <CursorPos X="3" Y="173"/> 462 <UsageCount Value="43"/> 463 <Loaded Value="True"/> 448 464 <DefaultSyntaxHighlighter Value="Delphi"/> 449 465 </Unit48> … … 451 467 <Filename Value="..\UCoolDockStylePopupTabs.pas"/> 452 468 <UnitName Value="UCoolDockStylePopupTabs"/> 453 <EditorIndex Value="2"/> 454 <WindowIndex Value="0"/> 455 <TopLine Value="182"/> 456 <CursorPos X="32" Y="195"/> 457 <UsageCount Value="10"/> 458 <Loaded Value="True"/> 469 <WindowIndex Value="0"/> 470 <TopLine Value="39"/> 471 <CursorPos X="1" Y="55"/> 472 <UsageCount Value="13"/> 459 473 <DefaultSyntaxHighlighter Value="Delphi"/> 460 474 </Unit49> … … 462 476 <Filename Value="..\UCoolDockStyle.pas"/> 463 477 <UnitName Value="UCoolDockStyle"/> 464 <EditorIndex Value="8"/> 465 <WindowIndex Value="0"/> 466 <TopLine Value="1"/> 467 <CursorPos X="3" Y="14"/> 468 <UsageCount Value="38"/> 469 <Loaded Value="True"/> 478 <WindowIndex Value="0"/> 479 <TopLine Value="12"/> 480 <CursorPos X="29" Y="24"/> 481 <UsageCount Value="43"/> 470 482 <DefaultSyntaxHighlighter Value="Delphi"/> 471 483 </Unit50> … … 473 485 <Filename Value="..\UCoolDockStyleRegions.pas"/> 474 486 <UnitName Value="UCoolDockStyleRegions"/> 475 <EditorIndex Value="7"/> 476 <WindowIndex Value="0"/> 477 <TopLine Value="31"/> 478 <CursorPos X="25" Y="37"/> 479 <UsageCount Value="38"/> 480 <Loaded Value="True"/> 487 <WindowIndex Value="0"/> 488 <TopLine Value="64"/> 489 <CursorPos X="1" Y="85"/> 490 <UsageCount Value="41"/> 481 491 <DefaultSyntaxHighlighter Value="Delphi"/> 482 492 </Unit51> … … 484 494 <Filename Value="..\UCoolDockStylePopupRegions.pas"/> 485 495 <UnitName Value="UCoolDockStylePopupRegions"/> 486 <EditorIndex Value="6"/>487 496 <WindowIndex Value="0"/> 488 497 <TopLine Value="1"/> 489 498 <CursorPos X="44" Y="11"/> 490 <UsageCount Value="10"/> 491 <Loaded Value="True"/> 499 <UsageCount Value="13"/> 492 500 <DefaultSyntaxHighlighter Value="Delphi"/> 493 501 </Unit52> … … 495 503 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\inc\objpash.inc"/> 496 504 <WindowIndex Value="0"/> 497 <TopLine Value="1 72"/>498 <CursorPos X=" 23" Y="185"/>499 <UsageCount Value=" 4"/>505 <TopLine Value="164"/> 506 <CursorPos X="8" Y="176"/> 507 <UsageCount Value="11"/> 500 508 </Unit53> 501 509 <Unit54> 502 510 <Filename Value="..\UCoolDockClientPanel.pas"/> 503 511 <UnitName Value="UCoolDockClientPanel"/> 504 <EditorIndex Value=" 3"/>505 <WindowIndex Value="0"/> 506 <TopLine Value=" 37"/>507 <CursorPos X=" 21" Y="51"/>508 <UsageCount Value=" 37"/>512 <EditorIndex Value="1"/> 513 <WindowIndex Value="0"/> 514 <TopLine Value="78"/> 515 <CursorPos X="1" Y="90"/> 516 <UsageCount Value="42"/> 509 517 <Loaded Value="True"/> 510 518 <DefaultSyntaxHighlighter Value="Delphi"/> … … 513 521 <Filename Value="..\UCoolDockPopupMenu.pas"/> 514 522 <UnitName Value="UCoolDockPopupMenu"/> 515 <EditorIndex Value=" 4"/>516 <WindowIndex Value="0"/> 517 <TopLine Value=" 49"/>518 <CursorPos X=" 24" Y="62"/>519 <UsageCount Value="1 1"/>523 <EditorIndex Value="13"/> 524 <WindowIndex Value="0"/> 525 <TopLine Value="5"/> 526 <CursorPos X="17" Y="17"/> 527 <UsageCount Value="15"/> 520 528 <Loaded Value="True"/> 521 529 <DefaultSyntaxHighlighter Value="Delphi"/> … … 523 531 <Unit56> 524 532 <Filename Value="E:\Programy\Lazarus\lcl\include\menuitem.inc"/> 525 <EditorIndex Value="1"/>526 533 <WindowIndex Value="0"/> 527 534 <TopLine Value="392"/> 528 535 <CursorPos X="1" Y="405"/> 536 <UsageCount Value="11"/> 537 </Unit56> 538 <Unit57> 539 <Filename Value="E:\Programy\Lazarus\lcl\include\menu.inc"/> 540 <WindowIndex Value="0"/> 541 <TopLine Value="115"/> 542 <CursorPos X="1" Y="128"/> 529 543 <UsageCount Value="10"/> 530 <Loaded Value="True"/> 531 </Unit56> 544 </Unit57> 545 <Unit58> 546 <Filename Value="E:\Programy\Lazarus\lcl\lclclasses.pp"/> 547 <UnitName Value="LCLClasses"/> 548 <EditorIndex Value="9"/> 549 <WindowIndex Value="0"/> 550 <TopLine Value="92"/> 551 <CursorPos X="1" Y="112"/> 552 <UsageCount Value="11"/> 553 <Loaded Value="True"/> 554 </Unit58> 555 <Unit59> 556 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\packages\fcl-base\src\contnrs.pp"/> 557 <UnitName Value="contnrs"/> 558 <WindowIndex Value="0"/> 559 <TopLine Value="66"/> 560 <CursorPos X="3" Y="72"/> 561 <UsageCount Value="11"/> 562 </Unit59> 563 <Unit60> 564 <Filename Value="E:\Programy\Lazarus\lcl\include\scrollingwincontrol.inc"/> 565 <WindowIndex Value="0"/> 566 <TopLine Value="239"/> 567 <CursorPos X="1" Y="261"/> 568 <UsageCount Value="11"/> 569 </Unit60> 570 <Unit61> 571 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\sysutils\systhrdh.inc"/> 572 <WindowIndex Value="0"/> 573 <TopLine Value="4"/> 574 <CursorPos X="4" Y="16"/> 575 <UsageCount Value="11"/> 576 </Unit61> 577 <Unit62> 578 <Filename Value="E:\Programy\Lazarus\lcl\include\application.inc"/> 579 <WindowIndex Value="0"/> 580 <TopLine Value="1038"/> 581 <CursorPos X="1" Y="1050"/> 582 <UsageCount Value="11"/> 583 </Unit62> 584 <Unit63> 585 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\compon.inc"/> 586 <EditorIndex Value="12"/> 587 <WindowIndex Value="0"/> 588 <TopLine Value="514"/> 589 <CursorPos X="13" Y="520"/> 590 <UsageCount Value="10"/> 591 <Loaded Value="True"/> 592 </Unit63> 532 593 </Units> 533 594 <JumpHistory Count="30" HistoryIndex="29"> 534 595 <Position1> 535 <Filename Value="..\UCoolDock PopupMenu.pas"/>536 <Caret Line=" 259" Column="29" TopLine="232"/>596 <Filename Value="..\UCoolDockClientPanel.pas"/> 597 <Caret Line="110" Column="1" TopLine="98"/> 537 598 </Position1> 538 599 <Position2> 539 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>540 <Caret Line=" 260" Column="45" TopLine="245"/>600 <Filename Value="E:\Programy\Lazarus\lcl\lclproc.pas"/> 601 <Caret Line="1528" Column="1" TopLine="1516"/> 541 602 </Position2> 542 603 <Position3> 543 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>544 <Caret Line=" 259" Column="20" TopLine="247"/>604 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 605 <Caret Line="1411" Column="1" TopLine="1399"/> 545 606 </Position3> 546 607 <Position4> 547 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>548 <Caret Line="1 4" Column="3" TopLine="1"/>608 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 609 <Caret Line="1392" Column="1" TopLine="1380"/> 549 610 </Position4> 550 611 <Position5> 551 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>552 <Caret Line=" 57" Column="3" TopLine="51"/>612 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 613 <Caret Line="1262" Column="1" TopLine="1250"/> 553 614 </Position5> 554 615 <Position6> 555 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>556 <Caret Line=" 63" Column="39" TopLine="50"/>616 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 617 <Caret Line="1263" Column="1" TopLine="1250"/> 557 618 </Position6> 558 619 <Position7> 559 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>560 <Caret Line="1 5" Column="9" TopLine="3"/>620 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 621 <Caret Line="1264" Column="1" TopLine="1250"/> 561 622 </Position7> 562 623 <Position8> 563 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>564 <Caret Line="3 " Column="14" TopLine="1"/>624 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 625 <Caret Line="3721" Column="1" TopLine="3709"/> 565 626 </Position8> 566 627 <Position9> 567 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>568 <Caret Line=" 116" Column="39" TopLine="95"/>628 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 629 <Caret Line="3724" Column="1" TopLine="3709"/> 569 630 </Position9> 570 631 <Position10> 571 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>572 <Caret Line=" 59" Column="23" TopLine="53"/>632 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 633 <Caret Line="3726" Column="1" TopLine="3709"/> 573 634 </Position10> 574 635 <Position11> 575 <Filename Value=" ..\UCoolDocking.pas"/>576 <Caret Line=" 500" Column="1" TopLine="484"/>636 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 637 <Caret Line="405" Column="1" TopLine="393"/> 577 638 </Position11> 578 639 <Position12> 579 <Filename Value=" ..\UCoolDockStylePopupTabs.pas"/>580 <Caret Line=" 190" Column="41" TopLine="185"/>640 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 641 <Caret Line="408" Column="1" TopLine="393"/> 581 642 </Position12> 582 643 <Position13> 583 <Filename Value=" ..\UCoolDockStylePopupTabs.pas"/>584 <Caret Line=" 195" Column="32" TopLine="182"/>644 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 645 <Caret Line="2102" Column="1" TopLine="2090"/> 585 646 </Position13> 586 647 <Position14> 587 <Filename Value=" ..\UCoolDocking.pas"/>588 <Caret Line=" 58" Column="35" TopLine="45"/>648 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 649 <Caret Line="101" Column="1" TopLine="89"/> 589 650 </Position14> 590 651 <Position15> 591 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>592 <Caret Line=" 34" Column="16" TopLine="18"/>652 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 653 <Caret Line="912" Column="1" TopLine="900"/> 593 654 </Position15> 594 655 <Position16> 595 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>596 <Caret Line=" 8" Column="46" TopLine="2"/>656 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 657 <Caret Line="913" Column="1" TopLine="900"/> 597 658 </Position16> 598 659 <Position17> 599 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>600 <Caret Line=" 285" Column="36" TopLine="272"/>660 <Filename Value="UDockForm.pas"/> 661 <Caret Line="37" Column="1" TopLine="18"/> 601 662 </Position17> 602 663 <Position18> 603 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>604 <Caret Line=" 21" Column="15" TopLine="8"/>664 <Filename Value="UDockForm.pas"/> 665 <Caret Line="38" Column="1" TopLine="18"/> 605 666 </Position18> 606 667 <Position19> 607 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>608 <Caret Line="3 4" Column="28" TopLine="25"/>668 <Filename Value="UDockForm.pas"/> 669 <Caret Line="39" Column="1" TopLine="18"/> 609 670 </Position19> 610 671 <Position20> 611 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>612 <Caret Line=" 285" Column="13" TopLine="272"/>672 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 673 <Caret Line="918" Column="1" TopLine="900"/> 613 674 </Position20> 614 675 <Position21> 615 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>616 <Caret Line=" 287" Column="31" TopLine="274"/>676 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 677 <Caret Line="103" Column="1" TopLine="91"/> 617 678 </Position21> 618 679 <Position22> 619 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>620 <Caret Line=" 326" Column="40" TopLine="311"/>680 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 681 <Caret Line="94" Column="24" TopLine="85"/> 621 682 </Position22> 622 683 <Position23> 623 <Filename Value=" ..\UCoolDockPopupMenu.pas"/>624 <Caret Line=" 325" Column="36" TopLine="311"/>684 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\compon.inc"/> 685 <Caret Line="496" Column="14" TopLine="493"/> 625 686 </Position23> 626 687 <Position24> 627 <Filename Value="..\UCoolDock ing.pas"/>628 <Caret Line=" 241" Column="47" TopLine="221"/>688 <Filename Value="..\UCoolDockClientPanel.pas"/> 689 <Caret Line="109" Column="67" TopLine="87"/> 629 690 </Position24> 630 691 <Position25> 631 <Filename Value=" E:\Programy\Lazarus\lcl\include\menuitem.inc"/>632 <Caret Line=" 405" Column="1" TopLine="392"/>692 <Filename Value="..\UCoolDocking.pas"/> 693 <Caret Line="219" Column="1" TopLine="207"/> 633 694 </Position25> 634 695 <Position26> 635 <Filename Value="..\UCoolDock ing.pas"/>636 <Caret Line=" 232" Column="1" TopLine="221"/>696 <Filename Value="..\UCoolDockClientPanel.pas"/> 697 <Caret Line="109" Column="1" TopLine="92"/> 637 698 </Position26> 638 699 <Position27> 639 <Filename Value="..\UCoolDock PopupMenu.pas"/>640 <Caret Line=" 66" Column="1" TopLine="53"/>700 <Filename Value="..\UCoolDockClientPanel.pas"/> 701 <Caret Line="111" Column="1" TopLine="92"/> 641 702 </Position27> 642 703 <Position28> 643 <Filename Value="..\UCoolDock PopupMenu.pas"/>644 <Caret Line=" 62" Column="13" TopLine="53"/>704 <Filename Value="..\UCoolDockClientPanel.pas"/> 705 <Caret Line="186" Column="1" TopLine="174"/> 645 706 </Position28> 646 707 <Position29> 647 <Filename Value=" Demo.lpr"/>648 <Caret Line=" 20" Column="1" TopLine="1"/>708 <Filename Value="..\UCoolDockClientPanel.pas"/> 709 <Caret Line="191" Column="1" TopLine="174"/> 649 710 </Position29> 650 711 <Position30> 651 <Filename Value=" Demo.lpr"/>652 <Caret Line=" 11" Column="11" TopLine="1"/>712 <Filename Value="UMainForm.pas"/> 713 <Caret Line="75" Column="3" TopLine="59"/> 653 714 </Position30> 654 715 </JumpHistory> … … 668 729 <SyntaxOptions> 669 730 <SyntaxMode Value="Delphi"/> 731 <CStyleOperator Value="False"/> 732 <AllowLabel Value="False"/> 733 <CPPInline Value="False"/> 670 734 </SyntaxOptions> 671 735 </Parsing> -
Docking/CoolDocking/Demo/UDockForm.lfm
r59 r103 7 7 ClientHeight = 240 8 8 ClientWidth = 320 9 OnDestroy = FormDestroy 9 10 LCLVersion = '0.9.29' 10 11 object Memo1: TMemo … … 17 18 end 18 19 object CoolDockClient1: TCoolDockClient 19 Dockable = True20 Floatable = False 20 21 Master = MainForm.CoolDockMaster1 21 22 left = 40 -
Docking/CoolDocking/Demo/UDockForm.pas
r58 r103 16 16 CoolDockClient1: TCoolDockClient; 17 17 Memo1: TMemo; 18 procedure FormDestroy(Sender: TObject); 18 19 private 19 20 { private declarations } … … 29 30 {$R *.lfm} 30 31 32 { TDockForm } 33 34 procedure TDockForm.FormDestroy(Sender: TObject); 35 var 36 Temp: string; 37 begin 38 Temp := Name; 39 end; 40 31 41 end. 32 42 -
Docking/CoolDocking/Demo/UMainForm.lfm
r97 r103 44 44 DefaultTabsPos = hpAuto 45 45 DefaultHeaderPos = hpAuto 46 DefaultMoveSpeed = 0 46 47 Customize = CoolDockCustomize1 47 48 ShowIcons = False -
Docking/CoolDocking/Demo/UMainForm.pas
r97 r103 71 71 //TCoolDockManager(ConjoinedDockForm1.Panel.DockManager).TabsPos := hpLeft; 72 72 ConjoinedDockForm1.ManualDock(Panel1); 73 //TCoolDockManager(ConjoinedDockForm1.Panel.DockManager).DockStyle := dsTabs;73 TCoolDockManager(ConjoinedDockForm1.Panel.DockManager).DockStyle := dsTabs; 74 74 NewDockForm.ManualDock(ConjoinedDockForm1.Panel); 75 75 NewDockForm.ManualDock(ConjoinedDockForm1.Panel); 76 NewDockForm.ManualDock(TForm(DockForms[0]));77 NewDockForm.ManualDock(TForm(DockForms[0]));78 NewDockForm.ManualDock(TForm(DockForms[0]));79 //TCustomDockManager(TDockForm(DockForms[0]).DockManager).DockStyle := dsTabs;76 //NewDockForm.ManualDock(TForm(DockForms[0])); 77 //NewDockForm.ManualDock(TForm(DockForms[0])); 78 //NewDockForm.ManualDock(TForm(DockForms[0])); 79 //TCustomDockManager(TDockForm(DockForms[0]).DockManager).DockStyle := dsTabs; 80 80 end; 81 81 … … 94 94 Result := TDockForm.Create(Self); 95 95 Result.Name := 'Form' + IntToStr(FormIndex); 96 Result.Caption := Result.Name; 96 97 Result.Memo1.Text := Result.Name; 97 98 //Result.DragKind := dkDock; -
Docking/CoolDocking/UCoolDockClientPanel.pas
r98 r103 7 7 uses 8 8 Classes, Controls, SysUtils, Forms, StdCtrls, ExtCtrls, Graphics, 9 Buttons , UCoolDockPopupMenu;9 Buttons; 10 10 11 11 type … … 38 38 FHeaderPos: THeaderPos; 39 39 FShowHeader: Boolean; 40 FControl: TControl; 40 41 function GetAutoHideEnabled: Boolean; 42 function GetControl: TControl; 41 43 procedure SetAutoHide(const AValue: Boolean); 42 44 procedure SetAutoHideEnabled(const AValue: Boolean); 45 procedure SetControl(const AValue: TControl); 43 46 procedure SetHeaderPos(const AValue: THeaderPos); 44 47 procedure SetShowHeader(const AValue: Boolean); 45 48 public 46 49 OwnerDockManager: TObject; // TCoolDockManager; 47 Control: TControl;48 50 Splitter: TSplitter; 49 51 ClientAreaPanel: TPanel; … … 60 62 write SetAutoHideEnabled; 61 63 property HeaderPos: THeaderPos read FHeaderPos write SetHeaderPos; 64 property Control: TControl read GetControl write SetControl; 62 65 end; 63 66 … … 78 81 procedure TCoolDockClientPanel.VisibleChange(Sender: TObject); 79 82 var 80 Visible: Boolean; 81 begin 82 (*if Assigned(Control) then begin 83 Visible := Control.Visible; 84 if Assigned(ClientAreaPanel) then 85 ClientAreaPanel.Visible := Visible; 83 ControlVisible: Boolean; 84 Temp: TControl; 85 Temp2: TControl; 86 begin 87 Temp := TControl(Sender); 88 if Assigned(Control) then 89 begin 90 91 ControlVisible := TControl(Sender).Visible; 92 (*if Assigned(ClientAreaPanel) then 93 ClientAreaPanel.Visible := ControlVisible; 86 94 if Assigned(Splitter) then 87 Splitter.Visible := Visible; 88 OwnerDockManager.UpdateClientSize; 89 end;*) 95 Splitter.Visible := ControlVisible; 96 *) 97 // if Assigned(TCoolDockManager(OwnerDockManager).DockStyleHandler) then 98 if Assigned(OwnerDockManager) then 99 with TCoolDockManager(OwnerDockManager) do 100 if Assigned(DockStyleHandler) then 101 with DockStyleHandler do begin 102 if ControlVisible then 103 Switch(DockPanels.IndexOf(FindControlInPanels(TControl(Sender)))); 104 //UpdateClientSize; 105 ChangeVisible(TWinControl(Control), ControlVisible); 106 // Show parent control 107 Temp := TControl(Sender).HostDockSite; 108 109 if ControlVisible then 110 TControl(Sender).HostDockSite.Visible := ControlVisible; 111 end; 112 if csDestroying in Control.ComponentState then Control := nil; 113 end; 90 114 end; 91 115 … … 100 124 end; 101 125 126 function TCoolDockClientPanel.GetControl: TControl; 127 begin 128 Result := FControl; 129 end; 130 102 131 procedure TCoolDockClientPanel.SetAutoHideEnabled(const AValue: Boolean); 103 132 begin 104 133 134 end; 135 136 procedure TCoolDockClientPanel.SetControl(const AValue: TControl); 137 begin 138 FControl := AValue; 105 139 end; 106 140 … … 148 182 149 183 destructor TCoolDockClientPanel.Destroy; 150 begin 184 var 185 Temp: TControl; 186 begin 187 Temp := Control; 188 //if ClientAreaPanel.GetControlIndex(Control) <> - 1 then 189 if Assigned(Control) then 190 Control.RemoveHandlerOnVisibleChanged(VisibleChange); 191 // If panel is destroyed undock docket control 192 //TWinControl(Control).ManualFloat(TWinControl(Control).BoundsRect); 193 151 194 inherited Destroy; 152 195 end; … … 154 197 procedure TCoolDockClientPanel.ResizeExecute(Sender: TObject); 155 198 begin 156 Control.Top := GrabberSize; 157 Control.Left := 0; 158 Control.Width := Width; 159 Control.Height := Height - GrabberSize; 160 //Control.SetBounds(0, GrabberSize, Width - Control.Left, 161 // Height - Control.Top); 199 if Assigned(Control) then begin 200 Control.Top := GrabberSize; 201 Control.Left := 0; 202 Control.Width := Width; 203 Control.Height := Height - GrabberSize; 204 //Control.SetBounds(0, GrabberSize, Width - Control.Left, 205 // Height - Control.Top); 206 end; 162 207 end; 163 208 -
Docking/CoolDocking/UCoolDockPopupMenu.pas
r98 r103 6 6 7 7 uses 8 Classes, SysUtils, Menus, Controls, Dialogs ;8 Classes, SysUtils, Menus, Controls, Dialogs, UCoolDockClientPanel; 9 9 10 10 type … … 18 18 procedure PopupMenuListClick(Sender: TObject); 19 19 procedure PopupMenuTabsClick(Sender: TObject); 20 procedure PopupMenuPopupListClick(Sender: TObject); 21 procedure PopupMenuPopupTabsClick(Sender: TObject); 20 22 procedure PopupMenuCloseClick(Sender: TObject); 21 23 procedure PopupMenuRenameClick(Sender: TObject); … … 38 40 SDockList = 'List'; 39 41 SDockTabs = 'Tabs'; 42 SDockPopupList = 'Popup list'; 43 SDockPopupTabs = 'Popup tabs'; 40 44 SCloseForm = 'Close'; 41 45 SRenameForm = 'Rename'; … … 63 67 Manager := AManager; 64 68 69 Name := TCoolDockManager(AManager).DockSite.Name + '_' + 'PopupMenu'; 70 65 71 NewMenuItem := TMenuItem.Create(Self); 66 72 NewMenuItem.Caption := SDockStyle; … … 77 83 NewMenuItem.Add(NewMenuItem2); 78 84 85 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 86 NewMenuItem2.Caption := SDockPopupList; 87 NewMenuItem2.OnClick := PopupMenuPopupListClick; 88 NewMenuItem.Add(NewMenuItem2); 89 90 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 91 NewMenuItem2.Caption := SDockPopupTabs; 92 NewMenuItem2.OnClick := PopupMenuPopupTabsClick; 93 NewMenuItem.Add(NewMenuItem2); 94 79 95 NewMenuItem := TMenuItem.Create(Self); 80 96 NewMenuItem.Caption := SPosition; … … 125 141 NewMenuItem.OnClick := PopupMenuCustomizeClick; 126 142 Items.Add(NewMenuItem); 127 128 (* // Tabs popup129 130 PopupMenuTabs := TPopupMenu.Create(FDockSite);131 PopupMenuTabs.Name := ADockSite.Name + '_' + 'PopupMenuTabs';132 133 NewMenuItem := TMenuItem.Create(PopupMenuTabs);134 NewMenuItem.Caption := SDockStyle;135 PopupMenuTabs.Items.Add(NewMenuItem);136 137 NewMenuItem2 := TMenuItem.Create(NewMenuItem);138 NewMenuItem2.Caption := SDockList;139 NewMenuItem2.OnClick := PopupMenuListClick;140 NewMenuItem.Add(NewMenuItem2);141 142 NewMenuItem2 := TMenuItem.Create(NewMenuItem);143 NewMenuItem2.Caption := SDockTabs;144 NewMenuItem2.OnClick := PopupMenuTabsClick;145 NewMenuItem.Add(NewMenuItem2);146 147 NewMenuItem := TMenuItem.Create(PopupMenuTabs);148 NewMenuItem.Caption := SPosition;149 PopupMenuTabs.Items.Add(NewMenuItem);150 151 NewMenuItem2 := TMenuItem.Create(NewMenuItem);152 NewMenuItem2.Caption := SPositionAuto;153 NewMenuItem2.OnClick := PopupMenuPositionAutoClick;154 NewMenuItem.Add(NewMenuItem2);155 156 NewMenuItem2 := TMenuItem.Create(NewMenuItem);157 NewMenuItem2.Caption := SPositionTop;158 NewMenuItem2.OnClick := PopupMenuPositionTopClick;159 NewMenuItem.Add(NewMenuItem2);160 161 NewMenuItem2 := TMenuItem.Create(NewMenuItem);162 NewMenuItem2.Caption := SPositionLeft;163 NewMenuItem2.OnClick := PopupMenuPositionLeftClick;164 NewMenuItem.Add(NewMenuItem2);165 166 NewMenuItem2 := TMenuItem.Create(NewMenuItem);167 NewMenuItem2.Caption := SPositionBottom;168 NewMenuItem2.OnClick := PopupMenuPositionBottomClick;169 NewMenuItem.Add(NewMenuItem2);170 171 NewMenuItem2 := TMenuItem.Create(NewMenuItem);172 NewMenuItem2.Caption := SPositionRight;173 NewMenuItem2.OnClick := PopupMenuPositionRightClick;174 NewMenuItem.Add(NewMenuItem2);175 176 NewMenuItem := TMenuItem.Create(PopupMenuTabs);177 NewMenuItem.Caption := SCloseForm;178 NewMenuItem.OnClick := PopupMenuCloseClick;179 PopupMenuTabs.Items.Add(NewMenuItem);180 181 NewMenuItem := TMenuItem.Create(PopupMenuTabs);182 NewMenuItem.Caption := SRenameForm;183 NewMenuItem.OnClick := PopupMenuRenameClick;184 PopupMenuTabs.Items.Add(NewMenuItem);185 186 NewMenuItem := TMenuItem.Create(PopupMenuTabs);187 NewMenuItem.Caption := SUndock;188 NewMenuItem.OnClick := PopupMenuUndockClick;189 PopupMenuTabs.Items.Add(NewMenuItem);190 191 NewMenuItem := TMenuItem.Create(PopupMenuTabs);192 NewMenuItem.Caption := SCustomize;193 NewMenuItem.OnClick := PopupMenuCustomizeClick;194 PopupMenuTabs.Items.Add(NewMenuItem);195 196 // Header popup197 198 PopupMenuHeader := TPopupMenu.Create(FDockSite);199 PopupMenuHeader.Name := ADockSite.Name + '_' + 'PopupMenuHeader';200 201 NewMenuItem := TMenuItem.Create(PopupMenuHeader);202 NewMenuItem.Caption := SDockStyle;203 PopupMenuHeader.Items.Add(NewMenuItem);204 205 NewMenuItem2 := TMenuItem.Create(NewMenuItem);206 NewMenuItem2.Caption := SDockList;207 NewMenuItem2.OnClick := PopupMenuListClick;208 NewMenuItem.Add(NewMenuItem2);209 210 NewMenuItem2 := TMenuItem.Create(NewMenuItem);211 NewMenuItem2.Caption := SDockTabs;212 NewMenuItem2.OnClick := PopupMenuTabsClick;213 NewMenuItem.Add(NewMenuItem2);214 215 NewMenuItem := TMenuItem.Create(PopupMenuHeader);216 NewMenuItem.Caption := SPosition;217 PopupMenuHeader.Items.Add(NewMenuItem);218 219 NewMenuItem2 := TMenuItem.Create(NewMenuItem);220 NewMenuItem2.Caption := SPositionAuto;221 NewMenuItem2.OnClick := PopupMenuPositionAutoClick;222 NewMenuItem.Add(NewMenuItem2);223 224 NewMenuItem2 := TMenuItem.Create(NewMenuItem);225 NewMenuItem2.Caption := SPositionTop;226 NewMenuItem2.OnClick := PopupMenuPositionTopClick;227 NewMenuItem.Add(NewMenuItem2);228 229 NewMenuItem2 := TMenuItem.Create(NewMenuItem);230 NewMenuItem2.Caption := SPositionLeft;231 NewMenuItem2.OnClick := PopupMenuPositionLeftClick;232 NewMenuItem.Add(NewMenuItem2);233 234 NewMenuItem2 := TMenuItem.Create(NewMenuItem);235 NewMenuItem2.Caption := SPositionBottom;236 NewMenuItem2.OnClick := PopupMenuPositionBottomClick;237 NewMenuItem.Add(NewMenuItem2);238 239 NewMenuItem2 := TMenuItem.Create(NewMenuItem);240 NewMenuItem2.Caption := SPositionRight;241 NewMenuItem2.OnClick := PopupMenuPositionRightClick;242 NewMenuItem.Add(NewMenuItem2);243 244 NewMenuItem := TMenuItem.Create(PopupMenuHeader);245 NewMenuItem.Caption := SCloseForm;246 NewMenuItem.OnClick := PopupMenuCloseClick;247 PopupMenuHeader.Items.Add(NewMenuItem);248 249 NewMenuItem := TMenuItem.Create(PopupMenuHeader);250 NewMenuItem.Caption := SRenameForm;251 NewMenuItem.OnClick := PopupMenuRenameClick;252 PopupMenuHeader.Items.Add(NewMenuItem);253 254 NewMenuItem := TMenuItem.Create(PopupMenuHeader);255 NewMenuItem.Caption := SUndock;256 NewMenuItem.OnClick := PopupMenuUndockClick;257 PopupMenuHeader.Items.Add(NewMenuItem);258 259 NewMenuItem := TMenuItem.Create(PopupMenuHeader);260 NewMenuItem.Caption := SCustomize;261 NewMenuItem.OnClick := PopupMenuCustomizeClick;262 PopupMenuHeader.Items.Add(NewMenuItem);263 *)264 265 143 end; 266 144 … … 268 146 begin 269 147 TCoolDockManager(Manager).DockStyle := dsTabs; 148 end; 149 150 procedure TCoolDockPopupMenu.PopupMenuPopupListClick(Sender: TObject); 151 begin 152 TCoolDockManager(Manager).DockStyle := dsPopupList; 153 end; 154 155 procedure TCoolDockPopupMenu.PopupMenuPopupTabsClick(Sender: TObject); 156 begin 157 TCoolDockManager(Manager).DockStyle := dsPopupTabs; 270 158 end; 271 159 … … 277 165 if Assigned(Control) then 278 166 ShowMessage(Control.ClassName); 279 //DockSiteTForm(TCoolDockManager(TControl(Sender).Parent.Parent.Parent.DockManager).FDockSite).Close;167 //DockSiteTForm(TCoolDockManager(TControl(Sender).Parent.Parent.Parent.DockManager).FDockSite).Close; 280 168 end; 281 169 … … 291 179 procedure TCoolDockPopupMenu.PopupMenuPositionAutoClick(Sender: TObject); 292 180 begin 293 //TabsPos := hpAuto;181 TCoolDockManager(Manager).HeaderPos := hpAuto; 294 182 end; 295 183 296 184 procedure TCoolDockPopupMenu.PopupMenuPositionLeftClick(Sender: TObject); 297 begin 298 //TabsPos := hpLeft; 185 var 186 Control: TControl; 187 begin 188 Control := FindLCLControl(Mouse.CursorPos); 189 TCoolDockManager(Manager).HeaderPos := hpLeft; 299 190 end; 300 191 301 192 procedure TCoolDockPopupMenu.PopupMenuPositionRightClick(Sender: TObject); 302 193 begin 303 //TabsPos := hpRight;194 TCoolDockManager(Manager).HeaderPos := hpRight; 304 195 end; 305 196 306 197 procedure TCoolDockPopupMenu.PopupMenuPositionTopClick(Sender: TObject); 307 198 begin 308 //TabsPos := hpTop;199 TCoolDockManager(Manager).HeaderPos := hpTop; 309 200 end; 310 201 311 202 procedure TCoolDockPopupMenu.PopupMenuPositionBottomClick(Sender: TObject); 312 203 begin 313 //TabsPos := hpBottom;204 TCoolDockManager(Manager).HeaderPos := hpBottom; 314 205 end; 315 206 -
Docking/CoolDocking/UCoolDockStyle.pas
r97 r103 9 9 10 10 type 11 12 11 { TCoolDockStyle } 13 12 14 13 TCoolDockStyle = class 14 private 15 public 15 16 Manager: TObject; // TCoolDockManager; 17 function GetHeaderPos: THeaderPos; virtual; 18 procedure SetHeaderPos(const AValue: THeaderPos); virtual; 16 19 constructor Create(AManager: TObject); 17 20 procedure InsertControl(NewPanel: TCoolDockClientPanel; AControl: TControl; 18 21 InsertAt: TAlign); virtual; 19 22 procedure UpdateClientSize; virtual; 23 procedure Switch(Index: Integer); virtual; 24 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); virtual; 25 property HeaderPos: THeaderPos read GetHeaderPos write SetHeaderPos; 20 26 end; 21 27 … … 26 32 27 33 { TCoolDockStyle } 34 35 function TCoolDockStyle.GetHeaderPos: THeaderPos; 36 begin 37 38 end; 39 40 procedure TCoolDockStyle.SetHeaderPos(const AValue: THeaderPos); 41 begin 42 43 end; 28 44 29 45 constructor TCoolDockStyle.Create(AManager: TObject); … … 43 59 end; 44 60 61 procedure TCoolDockStyle.Switch(Index: Integer); 62 begin 63 64 end; 65 66 procedure TCoolDockStyle.ChangeVisible(Control: TWinControl; Visible: Boolean); 67 begin 68 69 end; 70 45 71 end. 46 72 -
Docking/CoolDocking/UCoolDockStylePopupTabs.pas
r98 r103 7 7 uses 8 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, 9 UCoolDockStyleTabs, UCoolDockStyle ;9 UCoolDockStyleTabs, UCoolDockStyle, UCoolDockClientPanel; 10 10 11 11 type … … 52 52 constructor Create(AManager: TObject); 53 53 destructor Destroy; override; 54 private 54 55 end; 55 56 … … 181 182 182 183 constructor TCoolDockStylePopupTabs.Create(AManager: TObject); 184 var 185 I: Integer; 183 186 begin 187 inherited; 188 184 189 AutoHide := TCoolDockAutoHide.Create; 185 TabImageList := TImageList.Create(TCoolDockManager(AManager).DockSite);186 with TabImageList do begin187 end;188 TabControl := TTabControl.Create(TCoolDockManager(AManager).DockSite);189 with TabControl do begin190 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;202 190 end; 203 191 -
Docking/CoolDocking/UCoolDockStyleRegions.pas
r97 r103 17 17 18 18 TCoolDockStyleRegions = class(TCoolDockStyle) 19 Header: TCoolDockHeader; 19 private 20 public 20 21 Panels: TObjectList; // TObjectList<TCoolDockStyleRegionsPanel> 22 function GetHeaderPos: THeaderPos; override; 23 procedure SetHeaderPos(const AValue: THeaderPos); override; 21 24 constructor Create(AManager: TObject); 22 25 destructor Destroy; override; … … 31 34 32 35 { TCoolDockStyleRegions } 36 37 function TCoolDockStyleRegions.GetHeaderPos: THeaderPos; 38 begin 39 // Result := TCoolDockManager(Manager).; 40 end; 41 42 procedure TCoolDockStyleRegions.SetHeaderPos(const AValue: THeaderPos); 43 begin 44 inherited SetHeaderPos(AValue); 45 end; 33 46 34 47 constructor TCoolDockStyleRegions.Create(AManager: TObject); … … 72 85 end; 73 86 74 75 76 87 end. 77 88 -
Docking/CoolDocking/UCoolDockStyleTabs.pas
r98 r103 6 6 7 7 uses 8 Classes, Controls, ExtCtrls, ComCtrls, SysUtils, 8 Classes, Controls, ExtCtrls, ComCtrls, SysUtils, Dialogs, 9 9 Menus, UCoolDockStyle, Forms, UCoolDockClientPanel; 10 10 … … 25 25 procedure TabControlMouseUp(Sender: TObject; Button: TMouseButton; 26 26 Shift: TShiftState; X, Y: Integer); 27 constructor Create(AManager: TObject);28 destructor Destroy; override;29 27 procedure InsertControl(NewPanel: TCoolDockClientPanel; 30 28 AControl: TControl; InsertAt: TAlign); override; … … 33 31 FTabsPos: THeaderPos; 34 32 public 33 constructor Create(AManager: TObject); 34 destructor Destroy; override; 35 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; 36 procedure Switch(Index: Integer); override; 35 37 procedure SetTabsPos(const AValue: THeaderPos); 36 38 procedure PopupMenuTabCloseClick(Sender: TObject); … … 53 55 procedure TCoolDockStyleTabs.TabControlMouseLeave(Sender: TObject); 54 56 begin 55 (* if MouseDown then 57 if MouseDown then 58 with TCoolDockManager(Manager) do 56 59 if (TabControl.TabIndex <> -1) then begin 57 TCoolDockClientPanel( FDockPanels[TabControl.TabIndex]).ClientAreaPanel.DockSite := False;58 DragManager.DragStart(TCoolDockClientPanel( FDockPanels[TabControl.TabIndex]).Control, False, 1);60 TCoolDockClientPanel(DockPanels[TabControl.TabIndex]).ClientAreaPanel.DockSite := False; 61 DragManager.DragStart(TCoolDockClientPanel(DockPanels[TabControl.TabIndex]).Control, False, 1); 59 62 end; 60 63 MouseDown := False; 61 *)62 64 end; 63 65 … … 69 71 with TCoolDockManager(Manager) do 70 72 for I := 0 to DockPanels.Count - 1 do begin 71 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Visible := False; 73 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 74 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Hide; 72 75 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Parent := DockSite; 73 76 TCoolDockClientPanel(DockPanels[I]).Control.Align := alClient; 74 TCoolDockClientPanel(DockPanels[I]).Control.Visible := False; 77 //ShowMessage(TCoolDockClientPanel(DockPanels[I]).Control.ClassName); 78 Application.ProcessMessages; 75 79 76 80 // Workaround for "Cannot focus" error 77 81 TForm(TCoolDockClientPanel(DockPanels[I]).Control).ActiveControl := nil; 78 82 end; 83 84 // Show selected 79 85 with TCoolDockManager(Manager) do 80 86 if (TabControl.TabIndex <> -1) and (DockPanels.Count > TabControl.TabIndex) then begin … … 93 99 *) 94 100 //Parent := DockSite; 101 //Show; 95 102 Visible := True; 96 103 UpdateClientSize; … … 160 167 TCoolDockClientPanel(DockPanels[I]).Visible := False; 161 168 end; 162 TabControlChange(Self);163 169 end; 164 170 165 171 destructor TCoolDockStyleTabs.Destroy; 166 172 begin 167 TabControl. Visible := False;168 Tab Control.Tabs.Clear;173 TabControl.Free; 174 TabImageList.Free; 169 175 inherited Destroy; 176 end; 177 178 procedure TCoolDockStyleTabs.Switch(Index: Integer); 179 begin 180 inherited Switch(Index); 181 TabControl.TabIndex := Index; 170 182 end; 171 183 … … 196 208 end; 197 209 210 procedure TCoolDockStyleTabs.ChangeVisible(Control: TWinControl; Visible: Boolean); 211 var 212 I: Integer; 213 begin 214 inherited; 215 if not Visible then 216 if Assigned(TWinControl(Control).DockManager) then 217 with TCoolDockManager(TWinControl(Control).DockManager) do begin 218 // ShowMessage(IntToStr(DockPanels.Count)); 219 end; 220 end; 221 198 222 procedure TCoolDockStyleTabs.SetTabsPos(const AValue: THeaderPos); 199 223 begin -
Docking/CoolDocking/UCoolDocking.pas
r98 r103 32 32 CoolDockClient: TCoolDockClient; 33 33 procedure FormShow(Sender : TObject); 34 procedure FormHide(Sender : TObject); 34 35 constructor Create(TheOwner: TComponent); override; 36 destructor Destroy; override; 37 private 38 procedure PanelVisibleChange(Sender: TObject); 35 39 end; 36 40 37 41 TDockStyle = (dsList, dsTabs, dsPopupTabs, dsPopupList); 42 43 // TObjectList<TCoolDockClientPanel> 44 45 { TCoolDockPanels } 46 47 TCoolDockPanels = class(TObjectList) 48 destructor Destroy; override; 49 end; 38 50 39 51 { TCoolDockManager } … … 42 54 private 43 55 FMaster: TCoolDockMaster; 44 DockStyleHandler: TCoolDockStyle;45 56 FDockStyle: TDockStyle; 46 57 FDockDirection: TDockDirection; 47 58 FDockSite: TWinControl; 48 FDockPanels: TObjectList; // TObjectList<TCoolDockClientPanel> 49 function FindControlInPanels(Control: TControl): TCoolDockClientPanel; 59 FDockPanels: TCoolDockPanels; 50 60 function GetDockSite: TWinControl; 61 function GetHeaderPos: THeaderPos; 51 62 function GetMoveDuration: Integer; 52 63 procedure InsertControlPanel(Control: TControl; InsertAt: TAlign; 53 64 DropCtl: TControl); 54 65 procedure SetDockStyle(const AValue: TDockStyle); 66 procedure SetHeaderPos(const AValue: THeaderPos); 55 67 procedure SetMaster(const AValue: TCoolDockMaster); 56 68 procedure SetMoveDuration(const AValue: Integer); 69 procedure SetVisible(const AValue: Boolean); 57 70 procedure UpdateClientSize; 58 71 public 72 DockStyleHandler: TCoolDockStyle; 59 73 PopupMenu: TCoolDockPopupMenu; 60 74 constructor Create(ADockSite: TWinControl); override; … … 82 96 function AutoFreeByControl: Boolean; override; 83 97 98 function FindControlInPanels(Control: TControl): TCoolDockClientPanel; 84 99 function CreateContainer(InsertAt: TAlign): TCoolDockConjoinForm; 85 property DockPanels: T ObjectListread FDockPanels write FDockPanels;100 property DockPanels: TCoolDockPanels read FDockPanels write FDockPanels; 86 101 property DockStyle: TDockStyle read FDockStyle write SetDockStyle; 87 102 property MoveDuration: Integer read GetMoveDuration write SetMoveDuration; 88 103 property Master: TCoolDockMaster read FMaster write SetMaster; 89 104 property DockSite: TWinControl read GetDockSite; 105 property HeaderPos: THeaderPos read GetHeaderPos write SetHeaderPos; 106 property Visible: Boolean write SetVisible; 90 107 end; 91 108 … … 194 211 end; 195 212 213 { TCoolDockPanels } 214 215 destructor TCoolDockPanels.Destroy; 216 var 217 Temp: Integer; 218 begin 219 Temp := Count; 220 inherited Destroy; 221 end; 222 196 223 197 224 { TCoolDockManager } … … 214 241 end; 215 242 243 function TCoolDockManager.GetHeaderPos: THeaderPos; 244 begin 245 246 end; 247 216 248 function TCoolDockManager.GetMoveDuration: Integer; 217 249 begin … … 226 258 inherited Create(ADockSite); 227 259 FDockSite := ADockSite; 228 FDockPanels := T ObjectList.Create;260 FDockPanels := TCoolDockPanels.Create; 229 261 230 262 FDockStyle := dsTabs; // To initialize style value have to be different 231 263 DockStyle := dsList; 232 264 PopupMenu := TCoolDockPopupMenu.Create(Self); 265 PopupMenu.Parent := ADockSite; 233 266 end; 234 267 … … 236 269 begin 237 270 PopupMenu.Free; 271 DockStyleHandler.Free; 238 272 FDockPanels.Free; 239 DockStyleHandler.Free;240 273 inherited Destroy; 241 274 end; … … 309 342 if DockStyle = dsList then Visible := True; 310 343 Align := alClient; 311 Header.PopupMenu := PopupMenu; 344 Header.PopupMenu := Self.PopupMenu; 345 //PopupMenu.Parent := Self.DockSite; 312 346 end; 313 347 if (Control is TForm) and Assigned((Control as TForm).Icon) then … … 417 451 if Control.HostDockSite = Self.FDockSite then begin 418 452 ClientPanel := FindControlInPanels(Control); 453 419 454 //if Assigned(ClientPanel) then ClientPanel.Splitter.Free; 455 //Control.RemoveHandlerOnVisibleChanged(ClientPanel.VisibleChange); 420 456 FDockPanels.Remove(ClientPanel); 421 457 if FDockSite.DockClientCount = 2 then FDockDirection := ddNone; … … 474 510 if AValue = dsTabs then begin 475 511 DockStyleHandler := TCoolDockStyleTabs.Create(Self); 512 TCoolDockStyleTabs(DockStyleHandler).TabControlChange(Self); 476 513 end else 477 514 if AValue = dsList then begin … … 488 525 end; 489 526 527 procedure TCoolDockManager.SetHeaderPos(const AValue: THeaderPos); 528 begin 529 530 end; 531 490 532 procedure TCoolDockManager.SetMaster(const AValue: TCoolDockMaster); 491 533 begin … … 498 540 end; 499 541 542 procedure TCoolDockManager.SetVisible(const AValue: Boolean); 543 var 544 I: Integer; 545 begin 546 // for I := 0 to DockPanels.Count - 1 do 547 // TCoolDockClientPanel(DockPanels[I]).Visible := AValue; 548 end; 549 500 550 procedure TCoolDockManager.UpdateClientSize; 501 551 begin … … 507 557 procedure TCoolDockConjoinForm.FormShow(Sender: TObject); 508 558 begin 509 //Panel.Show; 559 Panel.Show; 560 TCoolDockManager(Panel.DockManager).Visible := True; 561 end; 562 563 procedure TCoolDockConjoinForm.FormHide(Sender: TObject); 564 var 565 I: Integer; 566 begin 567 Panel.Hide; 568 TCoolDockManager(Panel.DockManager).Visible := False; 569 // Hide all docked childs 570 with TCoolDockManager(Panel.DockManager) do 571 for I := 0 to DockPanels.Count - 1 do 572 if Assigned(TCoolDockClientPanel(DockPanels[I]).Control) then 573 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 510 574 end; 511 575 … … 517 581 Parent := Self; 518 582 Name := Parent.Name + '_Panel'; 583 Caption := ''; 519 584 DockSite := True; 520 585 UseDockManager := True; … … 530 595 end; 531 596 OnShow := FormShow; 597 OnHide := FormHide; 598 599 Panel.AddHandlerOnVisibleChanged(PanelVisibleChange); 600 end; 601 602 destructor TCoolDockConjoinForm.Destroy; 603 begin 604 Panel.RemoveHandlerOnVisibleChanged(PanelVisibleChange); 605 inherited; 606 end; 607 608 procedure TCoolDockConjoinForm.PanelVisibleChange(Sender: TObject); 609 begin 610 Visible := Panel.Visible; 532 611 end; 533 612 -
Docking/CoolDocking/languages/UCoolDockPopupMenu.po
r98 r103 12 12 #: ucooldockpopupmenu.sdocklist 13 13 msgid "List" 14 msgstr "" 15 16 #: ucooldockpopupmenu.sdockpopuplist 17 msgid "Popup list" 18 msgstr "" 19 20 #: ucooldockpopupmenu.sdockpopuptabs 21 msgid "Popup tabs" 14 22 msgstr "" 15 23
Note:
See TracChangeset
for help on using the changeset viewer.